engine
Class DefaultInstruction
java.lang.Object
|
+--engine.Instruction
|
+--engine.DefaultInstruction
- Direct Known Subclasses:
- AtInstruction, Block, CaseInstruction, CoutTask, DisplayTask, EmptyInstruction, FinishTask, ForeverInstruction, ForInstruction, Fork, IfInstruction, ProcAssignInstruc, RepeatInstruction, SimpleAssignInstruction, TaskInstruction, WaitInstruction, WhileInstruction
- public abstract class DefaultInstruction
- extends Instruction
This class is the parent of all 'user' instructions
(i.e. those which have a coresppondent into the user's code
- See Also:
- Serialized Form
|
Field Summary |
(package private) int |
delayBefore
what d'u think it is ?? |
(package private) InstructionDescription |
desc
this instruction's description |
(package private) NameSpace |
ns
the NameSpace instance wich contains this instruction |
(package private) int |
state
used by branch instructions. |
|
Method Summary |
(package private) void |
checkIfIsAllowedInFunction()
Should throw an exception if this this
instruction does not satisfy the function
instructions' restrictions |
java.lang.String |
toString()
|
(package private) long |
waitToRun()
|
| Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
wait,
wait,
wait |
ns
NameSpace ns
- the NameSpace instance wich contains this instruction
delayBefore
int delayBefore
- what d'u think it is ??
desc
InstructionDescription desc
- this instruction's description
state
int state
- used by branch instructions.
DefaultInstruction
DefaultInstruction(NameSpace ns,
int delayBefore,
InstructionDescription desc)
waitToRun
long waitToRun()
throws SimulationStoppedException
toString
public java.lang.String toString()
- Overrides:
- toString in class java.lang.Object
checkIfIsAllowedInFunction
void checkIfIsAllowedInFunction()
throws ParseException
- Should throw an exception if this this
instruction does not satisfy the function
instructions' restrictions