Class inria.meije.rc.sugarcubes.Repeat
All Packages Class Hierarchy This Package Previous Next Index
Class inria.meije.rc.sugarcubes.Repeat
java.lang.Object
|
+----inria.meije.rc.sugarcubes.Instruction
|
+----inria.meije.rc.sugarcubes.UnaryInstruction
|
+----inria.meije.rc.sugarcubes.Repeat
- public class Repeat
- extends UnaryInstruction
The finite loop. No detection of instantaneously terminating bodies.
-
counter
- counter is the number of already done cycles
-
num
- num is the initial loop number of cycles.
-
Repeat(int, Instruction)
-
-
activation(Machine)
- Specific activation.
-
equals(Instruction)
- Equality of two instructions implies that they are of the same type.
-
reset()
- To reset the instruction.
-
residual(Machine)
- Redefinition of residual.
-
toString()
- Instructions can be converted to strings.
num
protected int num
- num is the initial loop number of cycles.
counter
protected int counter
- counter is the number of already done cycles
Repeat
public Repeat(int num,
Instruction body)
reset
public void reset()
- To reset the instruction.
- Overrides:
- reset in class UnaryInstruction
equals
public final boolean equals(Instruction inst)
- Equality of two instructions implies that they are of the same type.
- Overrides:
- equals in class UnaryInstruction
residual
public Instruction residual(Machine machine)
- Redefinition of residual.
- Overrides:
- residual in class UnaryInstruction
toString
public final String toString()
- Instructions can be converted to strings.
- Overrides:
- toString in class Instruction
activation
protected final byte activation(Machine machine)
- Specific activation.
- Overrides:
- activation in class Instruction
All Packages Class Hierarchy This Package Previous Next Index