uk.ac.man.cs.rainbow.simulator
Class RASM.StatelessDevice

java.lang.Object
  |
  +--uk.ac.man.cs.rainbow.simulator.Instruction
        |
        +--uk.ac.man.cs.rainbow.simulator.RASM.StatelessDevice
All Implemented Interfaces:
Serializable
Enclosing class:
RASM

Deprecated. Use StatelessDevice

public static class RASM.StatelessDevice
extends Instruction

Mark thread as stateless.

This sets an internal flag in the thread which allows state characterisation of the device to be optimised by saying that the device will never have any state.

In the implementation, this avoids a string copy and a hash-table lookup, as well as allowing an appreciable compression in the size of state vector generated. This instruction should only ever be used where the thread is known systematically to be statelss, as is the case with many of the devices in the standard library and some user-defined Green devices (like functions and tables.)

Also incorporates the action of the StaticStackBase instruction.

- -

See Also:
RASM.LabelDevice, RASM.DeclareDeviceWithState, StateEnumerator.characterise(Data[]), Serialized Form

Inner classes inherited from class uk.ac.man.cs.rainbow.simulator.Instruction
Instruction.MACRO
 
Constructor Summary
RASM.StatelessDevice()
          Deprecated.  
RASM.StatelessDevice(RASMCode code)
          Deprecated.  
 
Method Summary
protected  boolean execute(RASMThread thread)
          Deprecated. Make this instruction execute in the given context.
 String toString()
          Deprecated.  
 
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

RASM.StatelessDevice

public RASM.StatelessDevice()
Deprecated. 

RASM.StatelessDevice

public RASM.StatelessDevice(RASMCode code)
Deprecated. 
Method Detail

toString

public String toString()
Deprecated. 
Overrides:
toString in class Object

execute

protected boolean execute(RASMThread thread)
Deprecated. 
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...