mns
Interface Commandable

All Known Implementing Classes:
Command, CommandThread, ComplexCommand, SpeachThread, SynchroSpeachThread

interface Commandable

Author:
martin lukac Interface with all basic definitions of the Command like objects.

Field Summary
static int DELAYED_ACT
          The command is either specified as time interval or has a delay.
static int MULTIPLE_ACT
          The command is a assembly of smaller Commands so as the resulting activity is a sequence of actions coordinated according to the individual rules of each single commands or according to global criteria defined in the command it self DELAYED_ACT
static int PERIODIC_ACT
          A periodic activity such as Speaking or Walking that requires a temporal synchronization of mulltiple BioDevices.
static int RANDOM_VALUE_MODE
          The size/value of single action is random.
static int REPEAT_VALUE_MODE
          The execution of the command is either a cyclic random pattern or commands addressed from higher symbolic level.
static int RRANGE_VALUE_MODE
          The steps of the incrementing/changing are a finite inerval.
static int SINGLE_ACT
          This execution is the simplest.
 
Method Summary
 Command cloneCommand()
           
 int getAssignDevices()
           
 java.lang.Object[] getCommand()
           
 int getExecDependency()
           
 int getExecMode()
           
 int getExecType()
           
 java.lang.Object[] getInstructions()
           
 int getMode()
           
 java.lang.String getName()
           
 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 setName(java.lang.String name)
           
 void setNominal(boolean isNominal)
           
 void setPart(MNSRobotPart part)
           
 void setSingleCom(java.lang.Object o, int index)
          set a single instruction at index
 

Field Detail

SINGLE_ACT

static final int SINGLE_ACT
This execution is the simplest. We write the command and wait for feedback SINGLE_ACT

See Also:
Constant Field Values

PERIODIC_ACT

static final int PERIODIC_ACT
A periodic activity such as Speaking or Walking that requires a temporal synchronization of mulltiple BioDevices. This is done via the usage of the BioDeviceListener interface allowing to listen to each BioDevice Individualy PERIODIC_ACT

See Also:
Constant Field Values

DELAYED_ACT

static final int DELAYED_ACT
The command is either specified as time interval or has a delay. This generates a command allowing to postpone its own execution either hardcoded or subjective to some conditions triggered by other BioDevices DELAYED_ACT

See Also:
Constant Field Values

MULTIPLE_ACT

static final int MULTIPLE_ACT
The command is a assembly of smaller Commands so as the resulting activity is a sequence of actions coordinated according to the individual rules of each single commands or according to global criteria defined in the command it self DELAYED_ACT

See Also:
Constant Field Values

RANDOM_VALUE_MODE

static final int RANDOM_VALUE_MODE
The size/value of single action is random. This applies only in the case where the command is asked to determine values to be sent to non targeted BioDevices which however are nto addressed by the parameters of the command RANDOM_MODE

See Also:
Constant Field Values

RRANGE_VALUE_MODE

static final int RRANGE_VALUE_MODE
The steps of the incrementing/changing are a finite inerval. This can be either expressed as a random value around a central point normalized via a modulo counter or a simpe truncation limited by upper and lower bounds of the intervall RANGE_MODE

See Also:
Constant Field Values

REPEAT_VALUE_MODE

static final int REPEAT_VALUE_MODE
The execution of the command is either a cyclic random pattern or commands addressed from higher symbolic level. Such as the act of speaking or walking implicates that multiple commands and execution string must be sent repeatedly in cycle REPEAT_MODE

See Also:
Constant Field Values
Method Detail

getCommand

java.lang.Object[] getCommand()
Returns:
Returns the command.

setCommand

void setCommand(java.lang.Object[] command)
Parameters:
command - The command to set.

setexecPeriod

void setexecPeriod(int execPeriod)
external tool to modify the execution period

Parameters:
execPeriod - integer

setSingleCom

void setSingleCom(java.lang.Object o,
                  int index)
set a single instruction at index

Parameters:
o - - the instruction
index - - the index of the instruction

getInstructions

java.lang.Object[] getInstructions()
Returns:
- the array of individual commands

getPeriod

int getPeriod()
Returns:
- the period for this command

getMode

int getMode()
Returns:

cloneCommand

Command cloneCommand()
Returns:
- copy of this command

getExecMode

int getExecMode()
Returns:
Returns the execMode.

setExecMode

void setExecMode(int execMode)
Parameters:
execMode - The execMode to set.

getExecType

int getExecType()
Returns:
Returns the execType.

setExecType

void setExecType(int execType)
Parameters:
execType - The execType to set.

getExecDependency

int getExecDependency()
Returns:
Returns the execDependency.

setExecDependency

void setExecDependency(int execDependency)
Parameters:
execDependency - The execDependency to set.

isNominal

boolean isNominal()
Returns:
Returns the isNominal.

setNominal

void setNominal(boolean isNominal)
Parameters:
isNominal - The isNominal to set.

getAssignDevices

int getAssignDevices()
Returns:
Returns the assignDevices.

setAssignDevices

void setAssignDevices(int assignDevices)
Parameters:
assignDevices - The assignDevices to set.

getPart

MNSRobotPart getPart()
Returns:
Returns the part.

setPart

void setPart(MNSRobotPart part)
Parameters:
part - The part to set.

isDone

boolean isDone()
Returns:
Returns the done.

setDone

void setDone(boolean done)
Parameters:
done - The done to set.

getName

java.lang.String getName()
Returns:
Returns the name.

setName

void setName(java.lang.String name)
Parameters:
name - The name to set.