uk.ac.man.cs.rainbow.simulator.rasm
Class TclExec
java.lang.Object
|
+--uk.ac.man.cs.rainbow.simulator.Instruction
|
+--uk.ac.man.cs.rainbow.simulator.rasm.TclExec
- All Implemented Interfaces:
- Serializable
- public class TclExec
- extends Instruction
Execute an external command.
Executes string as a Tcl command in the host system,
producing either a true value and a data value (if a
data value is the result of the script) or a false value
with no data value if the result of the script is an
empty string. All other script results cause exceptions out to
the hosting simulation environment.
This instruction is intended for use in the implementation of
source nodes, and should not be generated from any
ordinary Yellow or Green source code, and the
meaning of the string argument is defined by the
handling host environment.
string data true | (with
datavalue-string result) |
string false
| (with empty-string result) |
- See Also:
Scheduler.ExternalExecutionServer,
Scheduler.setExternalExecutionServer(Scheduler.ExternalExecutionServer), Serialized Form
TclExec
public TclExec()
TclExec
public TclExec(RASMCode code)
toString
public String toString()
- Overrides:
toString in class Object
execute
protected boolean execute(RASMThread thread)
throws RainbowException
- 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...