public class RobotManager extends PropertyChangeNotifier
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
RobotManager(org.osgi.framework.BundleContext context)
Creates a new RobotManager.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
addPropertyChangeListener, addPropertyChangeListener, clearAllListeners, clearListeners, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, hasListeners, removePropertyChangeListener, removePropertyChangeListenerpublic static final String PROP_ADD_ROBOT
public static final String PROP_REMOVE_ROBOT
public RobotManager(org.osgi.framework.BundleContext context)
context - BundleContext for OSGipublic 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()
Copyright © 2011-2014. All Rights Reserved.