|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.robokind.api.common.property.PropertyChangeNotifier
org.robokind.api.motion.utils.RobotManager
public class RobotManager
Manages Robots and provides RobotControllers.
Field Summary | |
---|---|
static String |
PROP_ADD_ROBOT
Property change event name for adding a Robot. |
static String |
PROP_REMOVE_ROBOT
Property change event name for removing a Robot. |
Constructor Summary | |
---|---|
RobotManager(org.osgi.framework.BundleContext context)
Creates a new RobotManager. |
Method Summary | |
---|---|
void |
addRobot(Robot robot)
Adds a RobotController for the given Robot. |
Map<Robot.Id,RobotController> |
getControllerMap()
Returns the Manager's Map of Robot Ids and RobotControllers. |
List<RobotController> |
getControllers()
Returns a List of RobotControllers owned by this RobotManager. |
void |
removeRobot(Robot.Id robotId)
Removes a Robot from the manager. |
Methods inherited from class org.robokind.api.common.property.PropertyChangeNotifier |
---|
addPropertyChangeListener, addPropertyChangeListener, clearAllListeners, clearListeners, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, hasListeners, removePropertyChangeListener, removePropertyChangeListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PROP_ADD_ROBOT
public static final String PROP_REMOVE_ROBOT
Constructor Detail |
---|
public RobotManager(org.osgi.framework.BundleContext context)
context
- BundleContext for OSGiMethod Detail |
---|
public void addRobot(Robot robot)
robotId
- id of the Robot to addpublic void removeRobot(Robot.Id robotId)
robotId
- robot to removepublic Map<Robot.Id,RobotController> getControllerMap()
public List<RobotController> getControllers()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |