public class RobotController extends PropertyChangeNotifier implements PropertyChangeListener
| Modifier and Type | Field and Description |
|---|---|
static String |
PROP_ROBOT
Property String for the RobotController's Robot Id.
|
| Constructor and Description |
|---|
RobotController(RobotManager manager)
Creates a new RobotController.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
connectRobot()
Connects the robot
|
boolean |
disableRobot()
Disables the Robot.
|
boolean |
disconnectRobot()
Disconnects the Robot.
|
boolean |
enableRobot()
Enables the Robot.
|
Robot |
getRobot()
Returns the Robot being controlled, null if it is unavailable.
|
void |
propertyChange(PropertyChangeEvent evt) |
boolean |
removeRobot()
Stops controlling the Robot.
|
boolean |
selectRobot()
Unused
|
boolean |
setDefaultPositions()
Moves the Robot to its default positions.
|
void |
setRobot(Robot robot)
Sets the id of the Robot to control.
|
void |
setRobotMover(PositionTargetFrameSource mover) |
addPropertyChangeListener, addPropertyChangeListener, clearAllListeners, clearListeners, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, hasListeners, removePropertyChangeListener, removePropertyChangeListenerpublic static final String PROP_ROBOT
public RobotController(RobotManager manager)
manager - RobotManager to manage this RobotControllerpublic void setRobot(Robot robot)
robotId - id of the robot to controlpublic Robot getRobot()
public boolean connectRobot()
public boolean disconnectRobot()
public boolean enableRobot()
public boolean disableRobot()
public boolean selectRobot()
public boolean setDefaultPositions()
public boolean removeRobot()
public void setRobotMover(PositionTargetFrameSource mover)
public void propertyChange(PropertyChangeEvent evt)
propertyChange in interface PropertyChangeListenerCopyright © 2011-2014. All Rights Reserved.