mns
Class SpeachThread

java.lang.Object
  extended by java.lang.Thread
      extended by mns.Command
          extended by mns.CommandThread
              extended by mns.SpeachThread
All Implemented Interfaces:
BioDeviceListener, java.lang.Cloneable, java.lang.Runnable, Commandable

public class SpeachThread
extends CommandThread
implements BioDeviceListener

Created on Jun 28, 2004 For specific purposes a Threadded command is an internal class allowing to run commands on one self and generate some regular, cyclic, time-variant behavior. Thus by default this type of command will be called when the period parameter is found durring creation of this command the default state is described by PERIODIC_ACT and RRANGE_VALUE_MODE

Author:
Martin Lukac

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
 
Fields inherited from interface mns.Commandable
DELAYED_ACT, MULTIPLE_ACT, PERIODIC_ACT, RANDOM_VALUE_MODE, REPEAT_VALUE_MODE, RRANGE_VALUE_MODE, SINGLE_ACT
 
Constructor Summary
SpeachThread(java.lang.String name)
           
 
Method Summary
 void bioEvent(BioDeviceEvent bdE)
          some commands can be coordinated through events such as speech or some other cyclic or random movements this serves to time coordinating them
 void energyConsumed(EnergyPrimitive ep)
           
 void run()
           
 
Methods inherited from class mns.CommandThread
addListener, getParentThread, setParentThread
 
Methods inherited from class mns.Command
cloneCommand, getAssignDevices, getBioname, getCommand, getExecDependency, getExecMode, getExecType, getInstructions, getKey, getMode, getPart, getPeriod, isDone, isNominal, setAssignDevices, setCommand, setDone, setExecDependency, setExecMode, setexecPeriod, setExecType, setKey, setNominal, setPart, setSingleCom
 
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
 
Methods inherited from interface mns.Commandable
getName, setName
 

Constructor Detail

SpeachThread

public SpeachThread(java.lang.String name)
Parameters:
name -
Method Detail

energyConsumed

public void energyConsumed(EnergyPrimitive ep)
Overrides:
energyConsumed in class CommandThread

bioEvent

public void bioEvent(BioDeviceEvent bdE)
some commands can be coordinated through events such as speech or some other cyclic or random movements this serves to time coordinating them

Specified by:
bioEvent in interface BioDeviceListener
Overrides:
bioEvent in class CommandThread
Parameters:
bdE - - caught BioDeviceEvent

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class CommandThread