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

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

public class SignalForward
extends RASM.ChannelBox

Sends a request on an output channel, chanId. If there are several signalForward instructions in a row (with no channel or scheduling instructions interspersed), the effects of the signalForward instructions are seen simultaneously.

chanId -

See Also:
WaitRelease, IsAvailable, Release, Serialized Form

Inner classes inherited from class uk.ac.man.cs.rainbow.simulator.Instruction
Instruction.MACRO
 
Constructor Summary
SignalForward()
           
SignalForward(RASMCode code)
           
 
Method Summary
protected  boolean execute(RASMThread thread, Channel chan)
          Perform an operation on the given thread and channel.
 String toString()
           
 
Methods inherited from class uk.ac.man.cs.rainbow.simulator.RASM.ChannelBox
execute
 
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

SignalForward

public SignalForward()

SignalForward

public SignalForward(RASMCode code)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

execute

protected boolean execute(RASMThread thread,
                          Channel chan)
                   throws RASMThread.Exception
Description copied from class: RASM.ChannelBox
Perform an operation on the given thread and channel. The instruction will be repeated (though with activity going on in other Rainbow threads) until this method returns false. Note that no values should be popped off the stack by this method, and values should only be pushed onto the stack if the method is about to return false.
Overrides:
execute in class RASM.ChannelBox
Following copied from class: uk.ac.man.cs.rainbow.simulator.RASM.ChannelBox
Returns:
true if the instruction is to be repeated by this thread.