Class inria.meije.rc.sugarcubes.Instruction
All Packages Class Hierarchy This Package Previous Next Index
Class inria.meije.rc.sugarcubes.Instruction
java.lang.Object
|
+----inria.meije.rc.sugarcubes.Instruction
- public class Instruction
- extends Object
- implements ReturnCodes, Cloneable
The abstract class of reactive instructions with
the activation abstract method.
An instruction can be activated, reset, or forced to terminate.
Activation returns TERM, STOP, or SUSP.
-
terminated
- To indicate that instruction is terminated.
-
Instruction()
-
-
activ(Machine)
- The general activ method activates the instruction in a machine
and manages its termination state.
-
activation(Machine)
- Specific activation.
-
clone()
- Instruction implements cloneable.
-
equals(Instruction)
- Equality of two instructions implies that they are of the same type.
-
exploration(Machine)
- A hook for analyzing an instruction.
-
explore(Machine)
-
-
isTerminated()
- To test if the instruction is terminated.
-
remain(Machine)
- Specific residual method.
-
reset()
- To reset the instruction.
-
residual(Machine)
- The residual of an instruction is nothing if it is terminated,
otherwise it is the result of the remain method.
-
terminate()
- To terminate the instruction.
-
toString()
- Instructions can be converted to strings.
terminated
protected boolean terminated
- To indicate that instruction is terminated.
Instruction
public Instruction()
reset
public void reset()
- To reset the instruction.
terminate
public final void terminate()
- To terminate the instruction.
isTerminated
public final boolean isTerminated()
- To test if the instruction is terminated.
activation
protected abstract byte activation(Machine machine)
- Specific activation.
activ
public final byte activ(Machine machine)
- The general activ method activates the instruction in a machine
and manages its termination state.
equals
public boolean equals(Instruction inst)
- Equality of two instructions implies that they are of the same type.
toString
public String toString()
- Instructions can be converted to strings.
- Overrides:
- toString in class Object
remain
protected Instruction remain(Machine machine)
- Specific residual method.
residual
public Instruction residual(Machine machine)
- The residual of an instruction is nothing if it is terminated,
otherwise it is the result of the remain method.
exploration
protected boolean exploration(Machine machine)
- A hook for analyzing an instruction. Returns true if it CAN
terminate, false otherwise.
explore
public boolean explore(Machine machine)
clone
public Object clone()
- Instruction implements cloneable.
- Overrides:
- clone in class Object
All Packages Class Hierarchy This Package Previous Next Index