mns
Class ComplexCommand

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

public class ComplexCommand
extends Command
implements java.lang.Runnable

Author:
Martin Lukac This is a part of mns package This is a multi command instruction command. It is nominal (accept no parmeters) and executes the stored commands serially and exits.

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
ComplexCommand(java.lang.String name, java.util.Vector commands)
           
 
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 run()
           
 
Methods inherited from class mns.Command
addListener, 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

ComplexCommand

public ComplexCommand(java.lang.String name,
                      java.util.Vector commands)
Parameters:
name -
commands -
Method Detail

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
Parameters:
bdE - - caught BioDeviceEvent

run

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