|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface BatteryManager
Interface of the battery manager. Allows configuration of different thresholds in the state of charge for all or
individual robots and registration of listeners when the battery level changes.
The installed default BatteryLevels consists of the three levels: LOW, MID and HIGH.
Note:
Since the Battery Manager is a single global component, it keeps it's configuration state
during the lifetime of the VMS and therefore may survive the life-cycle of an application.
| Method Summary | |
|---|---|
void |
addBatteryListener(BatteryListener listener)
Adds a listener to be notified of any changes in the state of charge of any robot. |
BatteryLevels.BatteryLevel |
getBatteryLevel(com.kuka.nav.robot.MobileRobot robot)
Query the current state of charge level based on the current state of charge and the currently configured battery levels. |
BatteryLevels |
getBatteryLevels()
|
BatteryLevels |
getBatteryLevels(com.kuka.nav.robot.MobileRobot robot)
|
Collection<com.kuka.nav.robot.MobileRobot> |
getRobotsWithLevel(String levelName)
|
void |
removeBatteryListener(BatteryListener listener)
Removes a listener to stop receiving events. |
void |
reset()
Completely resets the battery manager to the state of instance creation. |
void |
resetBatteryLevels()
Resets the global battery levels configuration to the default one (LOW, MID, HIGH) with the default thresholds. |
void |
resetBatteryLevels(com.kuka.nav.robot.MobileRobot robot)
Removes the robot specific BatteryLevels configuration for the given robot. |
void |
setBatteryLevels(BatteryLevels levels)
Sets the global battery levels. |
void |
setBatteryLevels(com.kuka.nav.robot.MobileRobot robot,
BatteryLevels levels)
Sets robot specific battery levels. |
| Method Detail |
|---|
void reset()
void setBatteryLevels(BatteryLevels levels)
levels - the state of charge levels configurationvoid resetBatteryLevels()
BatteryLevels getBatteryLevels()
void setBatteryLevels(com.kuka.nav.robot.MobileRobot robot,
BatteryLevels levels)
robot - the robot these levels apply tolevels - the state of charge levels configurationvoid resetBatteryLevels(com.kuka.nav.robot.MobileRobot robot)
robot - the robot to remove the BatteryLevels configuration for.BatteryLevels getBatteryLevels(com.kuka.nav.robot.MobileRobot robot)
robot - the robot whose state of charge levels are queried
BatteryLevels.BatteryLevel getBatteryLevel(com.kuka.nav.robot.MobileRobot robot)
robot - the robot whose battery level is to be queried
Collection<com.kuka.nav.robot.MobileRobot> getRobotsWithLevel(String levelName)
levelName - the name of a battery level
void addBatteryListener(BatteryListener listener)
listener - a listenervoid removeBatteryListener(BatteryListener listener)
listener - a listener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||