uk.ac.man.cs.rainbow.simulator.rasm
Class WaitGet

java.lang.Object
  |
  +--uk.ac.man.cs.rainbow.simulator.Instruction
        |
        +--uk.ac.man.cs.rainbow.simulator.Instruction.MACRO
              |
              +--uk.ac.man.cs.rainbow.simulator.rasm.WaitGet
All Implemented Interfaces:
Serializable

public class WaitGet
extends Instruction.MACRO

Wait for channel to become readable, and then read it.

Waits until a value is available on input channel chanId and then reads that value from the channel (i.e. a waitFor followed by a get.) The channel will need to be released separately for a complete transaction on the channel to occur. This instruction is simulated by a call to __MACROS__::waitGet

chanId value

See Also:
IsAvailable, Sleep, Get, WaitFor, Read, Release, Serialized Form

Inner classes inherited from class uk.ac.man.cs.rainbow.simulator.Instruction
Instruction.MACRO
 
Constructor Summary
WaitGet()
           
WaitGet(RASMCode code)
           
 
Method Summary
protected  void definition(RASMCode code)
           
 String toString()
           
 
Methods inherited from class uk.ac.man.cs.rainbow.simulator.Instruction.MACRO
addSequence, execute, location
 
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, wait, wait, wait
 

Constructor Detail

WaitGet

public WaitGet()

WaitGet

public WaitGet(RASMCode code)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

definition

protected void definition(RASMCode code)
Overrides:
definition in class Instruction.MACRO