|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.ac.man.cs.rainbow.simulator.Instruction | +--uk.ac.man.cs.rainbow.simulator.RASM.StatelessDevice
StatelessDevice
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.
- -
RASM.LabelDevice
,
RASM.DeclareDeviceWithState
,
StateEnumerator.characterise(Data[])
, Serialized FormInner 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 |
public RASM.StatelessDevice()
public RASM.StatelessDevice(RASMCode code)
Method Detail |
public String toString()
toString
in class Object
protected boolean execute(RASMThread thread)
Instruction
execute
in class Instruction
uk.ac.man.cs.rainbow.simulator.Instruction
RainbowException
- All sorts of things can go wrong during execution...
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |