|
||||||||||
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.reflexgenerator.PMotionCalculator
public class PMotionCalculator
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
(package private) int |
baseCounter
|
static int |
DETECT_LIMIT
|
static int |
E_STEP
|
static int[] |
genSteps
|
(package private) BioDeviceListener |
listener
|
static int |
MEM_STEP
|
(package private) int |
motionCounter
|
static int |
N_STEP
|
static int |
NE_STEP
|
static java.lang.String[] |
nGenSteps
|
static int |
NO_STEP
|
static int |
NW_STEP
|
static int |
RGB_DETECT_LIMIT
|
static int |
S_STEP
|
static int |
SE_STEP
|
static int |
SW_STEP
|
static int |
W_STEP
|
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 | |
---|---|
PMotionCalculator(BioSensorListener listener)
|
|
PMotionCalculator(ImagePanel ip,
BioSensorListener listener)
|
|
PMotionCalculator(ImagePanel ip,
javax.swing.JPanel id,
BioSensorListener listener)
|
Method Summary | |
---|---|
void |
addListener(BioDeviceListener rP)
|
java.lang.String |
getControls()
|
javax.swing.JPanel |
getid()
|
ImagePanel |
getIp()
|
void |
process(MNSEvent cnv)
loads a CNSEvent into a listener |
void |
run()
|
void |
setData(java.awt.image.BufferedImage bi)
|
void |
setId(javax.swing.JPanel id)
|
void |
setIp(ImagePanel ip)
|
Methods inherited from class nns.BioSensor |
---|
addListener, addSensorListener, geState, getCurrentPosition, getCurrentState, getListener, getname, getType, load, loadCNTR, 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 |
---|
BioDeviceListener listener
int baseCounter
int motionCounter
public static int MEM_STEP
public static int DETECT_LIMIT
public static int RGB_DETECT_LIMIT
public static int NO_STEP
public static int N_STEP
public static int E_STEP
public static int W_STEP
public static int S_STEP
public static int NE_STEP
public static int NW_STEP
public static int SE_STEP
public static int SW_STEP
public static java.lang.String[] nGenSteps
public static int[] genSteps
Constructor Detail |
---|
public PMotionCalculator(BioSensorListener listener)
listener
- public PMotionCalculator(ImagePanel ip, BioSensorListener listener)
ip
- -
the initial displaylistener
- -
the listenerpublic PMotionCalculator(ImagePanel ip, javax.swing.JPanel id, BioSensorListener listener)
ip
- id
- listener
- Method Detail |
---|
public void addListener(BioDeviceListener rP)
addListener
in interface BioDevice
addListener
in class BioSensor
public javax.swing.JPanel getid()
public void setId(javax.swing.JPanel id)
id
- The id to set.public void setIp(ImagePanel ip)
ip
- The associated panel to set.public ImagePanel getIp()
public java.lang.String getControls()
getControls
in interface BioDevice
getControls
in class BioSensor
public void setData(java.awt.image.BufferedImage bi)
bi
- -
extract the data from the taken imagepublic void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void process(MNSEvent cnv)
MNSListener
process
in interface MNSListener
process
in class BioSensor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |