MDACC
Biostatistics

org.mdanderson.biostat.geneclust
Class Sinterpreter

java.lang.Object
  extended byorg.mdanderson.biostat.geneclust.Sinterpreter
All Implemented Interfaces:
SinterpreterKeys

public class Sinterpreter
extends Object
implements SinterpreterKeys

Sinterpreter - Data processing portion of the application.


Field Summary
 
Fields inherited from interface org.mdanderson.biostat.geneclust.SinterpreterKeys
EXEC_PSEUDO_TERMINAL, PROCESS_COMPLETED, PROCESS_DESTROYED, THREAD_JOINED, WAITING_FOR_PROCESS, WAITING_FOR_THREAD_JOIN
 
Constructor Summary
Sinterpreter(SProcess simulation)
          Class constructor specifying simulation
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sinterpreter

public Sinterpreter(SProcess simulation)
Class constructor specifying simulation

Parameters:
simulation - reference to simulation object
Throws:
NullPointerException - if simulation object is null
Method Detail

runSimulation

public void runSimulation()
                   throws Exception
Launches the external S interpreter process, sets up process monitoring and logging threads, then writes the simulation input to the output stream.

Throws:
Exception - if anything goes wrong

interrupt

public void interrupt()
Causes the S interpreter input required to interrupt the simulation to be written to the output stream.

See Also:
SProcess.writeSinterpreterInterrupt(org.mdanderson.biostat.geneclust.SBufferedWriter)

endSimulation

public void endSimulation()
Ends the simulation by invoking simulation termination, and performs some thread management cleanup.

See Also:
SProcess.writeSinterpreterTermination(org.mdanderson.biostat.geneclust.SBufferedWriter)

MDACC
Biostatistics

Copyright © 2002 M.D. Anderson Cancer Center. All Rights Reserved.