|
||||||||||
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 devs.sensorpackage.milford5120.Milford5120
public class Milford5120
Nested Class Summary | |
---|---|
(package private) class |
Milford5120.InputReader
|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
static java.io.BufferedReader |
bir
Comment for bir |
static java.io.BufferedOutputStream |
bos
Comment for bos |
protected boolean |
changed
the blocking variable busy |
static java.io.InputStream |
is
Comment for is |
static int |
MAX_SWEEP
|
static int |
MIN_SWEEP
|
static javax.comm.SerialPort |
mPort
Comment for mPort |
static javax.comm.CommPortIdentifier |
mPortId
Comment for mPortId |
static boolean[] |
visualChanged
Comment for visualChanged |
static int[] |
visualField
Comment for visualField |
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 | |
---|---|
Milford5120(java.lang.String portName)
|
|
Milford5120(java.lang.String portName,
BioSensorListener listener)
|
Method Summary | |
---|---|
boolean |
isEnabled()
|
void |
run()
|
void |
sendInt(int i)
Sends a command to the ASC16 micro-controller |
void |
sensorCRLPercieved(BioSensorEvent event)
|
void |
sensorPercieved(BioSensorEvent event)
|
void |
setEnabled(boolean enabled)
|
void |
setRange(int center)
|
Methods inherited from class nns.BioSensor |
---|
addListener, addListener, addSensorListener, geState, getControls, getCurrentPosition, getCurrentState, getListener, getname, getType, load, loadCNTR, process, seState, setListener, setname, setType |
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 |
Field Detail |
---|
public static javax.comm.CommPortIdentifier mPortId
mPortId
public static javax.comm.SerialPort mPort
mPort
public static java.io.InputStream is
is
public static int[] visualField
visualField
public static boolean[] visualChanged
visualChanged
public static int MAX_SWEEP
public static int MIN_SWEEP
public static java.io.BufferedOutputStream bos
bos
public static java.io.BufferedReader bir
bir
protected boolean changed
busy
Constructor Detail |
---|
public Milford5120(java.lang.String portName)
portName
- -
the name of the portpublic Milford5120(java.lang.String portName, BioSensorListener listener)
portName
- -
name of the portlistener
- -
the Device listenerMethod Detail |
---|
public void sensorCRLPercieved(BioSensorEvent event)
public void sensorPercieved(BioSensorEvent event)
public void setRange(int center)
rangeLow
- rangeHigh
- public void sendInt(int i)
i
- -
integerpublic boolean isEnabled()
public void setEnabled(boolean enabled)
enabled
- The enabled to set.public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |