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
WaitGet
public WaitGet()
WaitGet
public WaitGet(RASMCode code)
toString
public String toString()
- Overrides:
toString
in class Object
definition
protected void definition(RASMCode code)
- Overrides:
definition
in class Instruction.MACRO