uk.ac.man.cs.rainbow.simulator
Class Instruction.MACRO

java.lang.Object
  |
  +--uk.ac.man.cs.rainbow.simulator.Instruction
        |
        +--uk.ac.man.cs.rainbow.simulator.Instruction.MACRO
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Connect, PopAll, PutForward, RASM.Connect, RASM.PopAll, RASM.PutForward, RASM.Read, RASM.WaitFor, RASM.WaitGet, RASM.Write, Read, WaitFor, WaitGet, Write
Enclosing class:
Instruction

public abstract static class Instruction.MACRO
extends Instruction

Instructions implemented in terms of other instructions must be subclasses of this class.

See Also:
Serialized Form

Inner classes inherited from class uk.ac.man.cs.rainbow.simulator.Instruction
Instruction.MACRO
 
Constructor Summary
Instruction.MACRO()
           
Instruction.MACRO(RASMCode code)
           
 
Method Summary
protected  void addSequence(RASMCode code)
           
protected  void definition(RASMCode code)
           
protected  boolean execute(RASMThread t)
          Make this instruction execute in the given context.
protected  void location(RASMCode code, String where)
           
 
Methods inherited from class uk.ac.man.cs.rainbow.simulator.Instruction
addClass, getInstruction, getInstruction, getInstruction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Instruction.MACRO

public Instruction.MACRO()

Instruction.MACRO

public Instruction.MACRO(RASMCode code)
Method Detail

definition

protected void definition(RASMCode code)

location

protected void location(RASMCode code,
                        String where)

addSequence

protected void addSequence(RASMCode code)

execute

protected final boolean execute(RASMThread t)
Description copied from class: Instruction
Make this instruction execute in the given context.
Overrides:
execute in class Instruction
Following copied from class: uk.ac.man.cs.rainbow.simulator.Instruction
Throws:
RainbowException - All sorts of things can go wrong during execution...