|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--interfaces.Controller | +--GBN1
This controller is based on guesses about expected input values. I spent about an hour trying to pick "good" expected input values by guesswork and ended up just using using GRRs original guess as example. It is a 3-1 net plus bias.
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 | |
GBN1()
|
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 |
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 GBN1()
Method Detail |
public void run()
Controller
run
in class Controller
public void initController(AbstractRobot r)
Controller
initController
in class Controller
interfaces.Controller
r
- the AbstractRobot associated with this controllerpublic int[] getSensors()
Controller
getSensors
in class Controller
interfaces.Controller
public void halt()
Controller
halt
in class Controller
public AbstractRobot getRobot()
Controller
getRobot
in class Controller
interfaces.Controller
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 |