|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--interfaces.Controller | +--GBN3
This class is a 4-1 net (plus bias) whos input comes from preprocessing 3 sensor inputs. The net was trained on 4 training patterns and generalises across 16 possible sets of binary inputs. see GBN3.training file for details. This robot tends to turn left when it thinks it is pointing the wrong way. See GBN4 for an implementation using only 3 training patterns and 8 possible sets of binary inputs.
GBN4
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 | |
GBN3()
|
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 GBN3()
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 |