|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread biocell.BioThread nns.BioSensor brain.alice.AliceBasedInterface
public class AliceBasedInterface
Nested Class Summary | |
---|---|
class |
AliceBasedInterface.ConsoleDisplayStream
Extends OutputStream to direct all output to the display textarea. |
class |
AliceBasedInterface.ConsoleInputStream
|
class |
AliceBasedInterface.ConsolePromptStream
Extends OutputStream to direct all output to the prompt field. |
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
protected AliceServer |
server
The server associated with this console. |
protected Shell |
shell
The Shell used by this console. |
Fields inherited from class nns.BioSensor |
---|
EXTERO_SENSOR, INTERO_SENSOR, PROPRIO_SENSOR |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Fields inherited from interface biocell.BioDevice |
---|
BLOCKED, BUSY, CYCLING, DONE, END, PAUSED, RESUMED, START, WAIT |
Constructor Summary | |
---|---|
AliceBasedInterface(javax.swing.JTextArea display,
RobotClientListener listener)
|
|
AliceBasedInterface(RobotClientListener listener)
|
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent ae)
|
void |
addDisplay(javax.swing.JTextArea display)
|
java.lang.String |
getMood()
|
boolean |
isActive()
|
void |
process(MNSEvent cnv)
loads a CNSEvent into a listener |
void |
run()
|
void |
sensorPercieved(BioSensorEvent event)
|
void |
setActive(boolean active)
|
void |
setMood(int who,
java.lang.String whoo)
|
void |
setMood(java.lang.String mood)
|
protected void |
shutdown()
|
Methods inherited from class nns.BioSensor |
---|
addListener, addListener, addSensorListener, geState, getControls, getCurrentPosition, getCurrentState, getListener, getname, getType, load, loadCNTR, seState, setListener, setname, setType |
Methods inherited from class biocell.BioThread |
---|
getCurrentmood, getMoodParam, getstate, 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 |
Field Detail |
---|
protected AliceServer server
protected Shell shell
Constructor Detail |
---|
public AliceBasedInterface(javax.swing.JTextArea display, RobotClientListener listener)
public AliceBasedInterface(RobotClientListener listener)
Method Detail |
---|
public void sensorPercieved(BioSensorEvent event)
public void actionPerformed(java.awt.event.ActionEvent ae)
public void process(MNSEvent cnv)
MNSListener
process
in interface MNSListener
process
in class BioSensor
public void addDisplay(javax.swing.JTextArea display)
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
protected void shutdown()
public boolean isActive()
public void setActive(boolean active)
active
- The active to set.public java.lang.String getMood()
public void setMood(java.lang.String mood)
setMood
in class BioThread
mood
- The mood to set.public void setMood(int who, java.lang.String whoo)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |