biocell
Class BioThread

java.lang.Object
  extended by java.lang.Thread
      extended by biocell.BioThread
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
ASC16.InputReader, BioSensor, BioSensorThread, DbInterface, DisplayImage, FrameGrabber, GlobalState, InstantMoodController, Milford5120.InputReader, MNS, MNSposture, MNSRobotPart, NNS, qBrain, Robot, Sensor, SensorExplorer.InputReader, SpeechSynthesizer

public class BioThread
extends java.lang.Thread

Author:
martin lukac Thread based bio-wrapper, provdes synchronized access to moods and updates the parameters similalrly to BioCell

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
BioThread()
           
BioThread(java.lang.String name)
           
 
Method Summary
 DynamicMood getCurrentmood()
           
 double getMoodParam(java.lang.String name)
           
 int getstate()
           
 void setMood(java.lang.String name)
           
 void stepEnergy(java.lang.Object o)
           
 
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, run, 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

BioThread

public BioThread(java.lang.String name)
Parameters:
name -

BioThread

public BioThread()
Method Detail

getstate

public int getstate()

getMoodParam

public double getMoodParam(java.lang.String name)
Parameters:
name -
Returns:

setMood

public void setMood(java.lang.String name)
Parameters:
name - - reset the mood to one of the initially encoded

getCurrentmood

public DynamicMood getCurrentmood()
Returns:
Returns the currentmood.

stepEnergy

public void stepEnergy(java.lang.Object o)