org.robokind.api.motion.utils
Class RobotController

java.lang.Object
  extended by org.robokind.api.common.property.PropertyChangeNotifier
      extended by org.robokind.api.motion.utils.RobotController
All Implemented Interfaces:
PropertyChangeListener, EventListener, PropertyChangeSource

public class RobotController
extends PropertyChangeNotifier
implements PropertyChangeListener

Controls a Robot for the UI

Author:
Matthew Stevenson

Field Summary
static String PROP_ROBOT
           
static String PROP_SELECT_ROBOT
           
 
Constructor Summary
RobotController(org.osgi.framework.BundleContext context, RobotManager manager)
           
 
Method Summary
 boolean connectRobot()
           
 boolean disableRobot()
           
 boolean disconnectRobot()
           
 boolean enableRobot()
           
 Robot getRobot()
           
 void propertyChange(PropertyChangeEvent evt)
           
 boolean removeRobot()
           
 boolean selectRobot()
           
 boolean setDefaultPositions()
           
 void setRobotId(Robot.Id robotId)
           
 
Methods inherited from class org.robokind.api.common.property.PropertyChangeNotifier
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_ROBOT

public static final String PROP_ROBOT
See Also:
Constant Field Values

PROP_SELECT_ROBOT

public static final String PROP_SELECT_ROBOT
See Also:
Constant Field Values
Constructor Detail

RobotController

public RobotController(org.osgi.framework.BundleContext context,
                       RobotManager manager)
Method Detail

setRobotId

public void setRobotId(Robot.Id robotId)

getRobot

public Robot getRobot()

connectRobot

public boolean connectRobot()

disconnectRobot

public boolean disconnectRobot()

enableRobot

public boolean enableRobot()

disableRobot

public boolean disableRobot()

selectRobot

public boolean selectRobot()

setDefaultPositions

public boolean setDefaultPositions()

removeRobot

public boolean removeRobot()

propertyChange

public void propertyChange(PropertyChangeEvent evt)
Specified by:
propertyChange in interface PropertyChangeListener


Copyright © 2011-2012. All Rights Reserved.