|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
biocell.BioThread
nns.NNS
public class NNS
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary |
|---|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
NNS(BioSensorListener listener)
Default Constructor this assusres now a order of different devices. |
|
| Method Summary | |
|---|---|
void |
addListener(BioSensorListener listener)
|
void |
addnnsModule(BioSensor sensor)
|
void |
addnnsModule(MNSListener actuator)
|
void |
bioEvent(BioDeviceEvent bdE)
|
void |
energyConsumed(EnergyPrimitive ep)
|
java.util.Vector |
getListener()
|
int[] |
getMotState()
|
BioSensor |
getSensor(java.lang.String key)
|
java.util.Vector |
getSensors()
|
boolean |
isEnabled()
|
static void |
main(java.lang.String[] args)
|
void |
process(MNSEvent mnEvent)
loads a CNSEvent into a listener |
void |
run()
Methods to control and communicate with the robot - only upward stream |
void |
sensorCRLPercieved(BioSensorEvent event)
|
void |
sensorPercieved(BioSensorEvent evt)
|
void |
setEnabled(boolean enabled)
|
void |
setListener(BioSensorListener listener)
|
void |
setMotState(int[] motstates)
|
void |
setSensors(java.util.Vector nnsModules)
|
void |
test()
|
| Methods inherited from class biocell.BioThread |
|---|
getCurrentmood, getMoodParam, getstate, setMood, stepEnergy |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, 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 NNS(BioSensorListener listener)
| Method Detail |
|---|
public void process(MNSEvent mnEvent)
MNSListener
process in interface MNSListenerpublic void sensorCRLPercieved(BioSensorEvent event)
sensorCRLPercieved in interface BioSensorListenerevent - - must be overriden to allow CRL parsed commandspublic void sensorPercieved(BioSensorEvent evt)
sensorPercieved in interface BioSensorListenerevt - - must be overriden to provide command accesspublic int[] getMotState()
public void setMotState(int[] motstates)
public void addnnsModule(BioSensor sensor)
sensor - public void addnnsModule(MNSListener actuator)
actuator - public java.util.Vector getListener()
public void setListener(BioSensorListener listener)
listener - The listener to set.public void addListener(BioSensorListener listener)
listener - The listener to set.public java.util.Vector getSensors()
public BioSensor getSensor(java.lang.String key)
public void setSensors(java.util.Vector nnsModules)
sensors - The sensors to set.public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic void test()
public static void main(java.lang.String[] args)
public boolean isEnabled()
public void setEnabled(boolean enabled)
enabled - The enabled to set.public void bioEvent(BioDeviceEvent bdE)
bioEvent in interface BioDeviceListenerpublic void energyConsumed(EnergyPrimitive ep)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||