|
||||||||||
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.RobotController
public class RobotController
Used by UI components to abstract away controlling a Robot.
Field Summary | |
---|---|
static String |
PROP_ROBOT
Property String for the RobotController's Robot Id. |
Constructor Summary | |
---|---|
RobotController(RobotManager manager)
Creates a new RobotController. |
Method Summary | |
---|---|
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)
|
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_ROBOT
Constructor Detail |
---|
public RobotController(RobotManager manager)
manager
- RobotManager to manage this RobotControllerMethod Detail |
---|
public 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 PropertyChangeListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |