|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread mns.Command
public abstract class Command
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 | |
---|---|
Command(java.lang.String name)
|
Method Summary | |
---|---|
protected void |
addListener()
private method for adding this to the biodevices as a listener |
Command |
cloneCommand()
|
int |
getAssignDevices()
|
java.lang.String |
getBioname()
|
java.lang.Object[] |
getCommand()
|
int |
getExecDependency()
|
int |
getExecMode()
|
int |
getExecType()
|
java.lang.Object[] |
getInstructions()
|
char |
getKey()
|
int |
getMode()
|
MNSRobotPart |
getPart()
|
int |
getPeriod()
|
boolean |
isDone()
|
boolean |
isNominal()
|
void |
setAssignDevices(int assignDevices)
|
void |
setCommand(java.lang.Object[] command)
|
void |
setDone(boolean done)
|
void |
setExecDependency(int execDependency)
|
void |
setExecMode(int execMode)
|
void |
setexecPeriod(int execPeriod)
external tool to modify the execution period |
void |
setExecType(int execType)
|
void |
setKey(char key)
|
void |
setNominal(boolean isNominal)
|
void |
setPart(MNSRobotPart part)
|
void |
setSingleCom(java.lang.Object o,
int index)
set a single instruction at index |
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 |
Methods inherited from interface biocell.BioDeviceListener |
---|
bioEvent |
Methods inherited from interface mns.Commandable |
---|
getName, setName |
Constructor Detail |
---|
public Command(java.lang.String name)
Method Detail |
---|
public java.lang.Object[] getCommand()
getCommand
in interface Commandable
public void setCommand(java.lang.Object[] command)
setCommand
in interface Commandable
command
- The command to set.public void setexecPeriod(int execPeriod)
setexecPeriod
in interface Commandable
execPeriod
- integerpublic void setSingleCom(java.lang.Object o, int index)
setSingleCom
in interface Commandable
o
- -
the instructionindex
- -
the index of the instructionpublic java.lang.Object[] getInstructions()
getInstructions
in interface Commandable
public int getPeriod()
getPeriod
in interface Commandable
public int getMode()
getMode
in interface Commandable
public Command cloneCommand()
cloneCommand
in interface Commandable
public int getExecMode()
getExecMode
in interface Commandable
public void setExecMode(int execMode)
setExecMode
in interface Commandable
execMode
- The execMode to set.public int getExecType()
getExecType
in interface Commandable
public void setExecType(int execType)
setExecType
in interface Commandable
execType
- The execType to set.public int getExecDependency()
getExecDependency
in interface Commandable
public void setExecDependency(int execDependency)
setExecDependency
in interface Commandable
execDependency
- The execDependency to set.public boolean isNominal()
isNominal
in interface Commandable
public void setNominal(boolean isNominal)
setNominal
in interface Commandable
isNominal
- The isNominal to set.public int getAssignDevices()
getAssignDevices
in interface Commandable
public void setAssignDevices(int assignDevices)
setAssignDevices
in interface Commandable
assignDevices
- The assignDevices to set.public MNSRobotPart getPart()
getPart
in interface Commandable
public void setPart(MNSRobotPart part)
setPart
in interface Commandable
part
- The part to set.public boolean isDone()
isDone
in interface Commandable
public void setDone(boolean done)
setDone
in interface Commandable
done
- The done to set.protected void addListener()
public char getKey()
public void setKey(char key)
key
- The key to set.public java.lang.String getBioname()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |