org.mdanderson.biostat.geneclust
public class Sinterpreter extends Object implements SinterpreterKeys
EXEC_PSEUDO_TERMINAL, PROCESS_COMPLETED, PROCESS_DESTROYED, THREAD_JOINED, WAITING_FOR_PROCESS, WAITING_FOR_THREAD_JOIN
Constructor and Description |
---|
Sinterpreter(SProcess simulation)
Class constructor specifying simulation
|
Modifier and Type | Method and Description |
---|---|
void |
endSimulation()
Ends the simulation by invoking simulation termination, and performs
some thread management cleanup.
|
void |
interrupt()
Causes the S interpreter input required to interrupt the simulation to be
written to the output stream.
|
void |
runSimulation()
Launches the external S interpreter process, sets up process monitoring and
logging threads, then writes the simulation input to the output stream.
|
public Sinterpreter(SProcess simulation)
simulation
- reference to simulation objectNullPointerException
- if simulation object is nullpublic void runSimulation() throws Exception
Exception
- if anything goes wrongpublic void interrupt()
public void endSimulation()
Copyright © 2002 M.D. Anderson Cancer Center. All Rights Reserved.