|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--interfaces.Controller | +--SimpleBehaviour
A simple example behaviour - used for testing, debugging etc,
Fields inherited from class interfaces.Controller |
SENSOR_TYPE_LIGHT, SENSOR_TYPE_TOUCH |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
SimpleBehaviour()
|
Method Summary | |
AbstractRobot |
getRobot()
Returns the AbstractRobot associated with this controller |
int[] |
getSensors()
Returns an array of the sensors used by this controller, and the type of sensor required. |
void |
go()
Control method - just moves the robot around a bit |
void |
halt()
Stops this controller's thread running, i.e. |
void |
initController(AbstractRobot r)
Initialises controller. |
void |
pause()
|
void |
run()
Starts this controller's thread running. |
void |
unpause()
|
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SimpleBehaviour()
Method Detail |
public void initController(AbstractRobot r)
Controller
initController
in class Controller
interfaces.Controller
r
- the AbstractRobot associated with this controllerpublic AbstractRobot getRobot()
Controller
getRobot
in class Controller
interfaces.Controller
public int[] getSensors()
Controller
getSensors
in class Controller
interfaces.Controller
public void run()
Controller
run
in class Controller
public void halt()
Controller
halt
in class Controller
public void go()
public void pause()
pause
in class Controller
public void unpause()
unpause
in class Controller
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |