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

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.Release
All Implemented Interfaces:
Serializable

public class Release
extends RASM.ChannelBox

Sends an acknowledgement on an input channel, chanId. Half of the request/acknowledge system used to implement rendezvous communications at the reading side.

chanId -

See Also:
SignalForward, WaitRelease, IsAvailable, Serialized Form

Inner classes inherited from class uk.ac.man.cs.rainbow.simulator.Instruction
Instruction.MACRO
 
Constructor Summary
Release()
           
Release(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

Release

public Release()

Release

public Release(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.