MDACC
Biostatistics

org.mdanderson.biostat.geneclust
Class SProcess

java.lang.Object
  extended byorg.mdanderson.biostat.geneclust.SProcess
Direct Known Subclasses:
Simulation

public abstract class SProcess
extends Object

SProcess - Abstract data passing between the user interface and Sinterpreter.


Field Summary
protected  SimulationDialog dialog
           
 
Constructor Summary
SProcess(SimulationDialog dialog)
           
 
Method Summary
 SimulationDialog getDialog()
          Returns reference to dialog where simulation progress can be monitored.
 void run(String param)
          Runs the simulation, managing the S interpreter processing occuring in external process.
abstract  void writeSinterpreterInput(org.mdanderson.biostat.geneclust.SBufferedWriter bw)
          Writes all S interpreter input to the output stream.
 void writeSinterpreterInterrupt(org.mdanderson.biostat.geneclust.SBufferedWriter bw)
          Writes the S interpreter input required to interrupt the simulation to the output stream.
 void writeSinterpreterTermination(org.mdanderson.biostat.geneclust.SBufferedWriter bw)
          Writes the S interpreter input required to close the graphics device and terminate the external process.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dialog

protected SimulationDialog dialog
Constructor Detail

SProcess

public SProcess(SimulationDialog dialog)
Parameters:
dialog - dialog allows monitoring of sim progress
Throws:
NullPointerException - if dialog is null
Method Detail

getDialog

public SimulationDialog getDialog()
Returns reference to dialog where simulation progress can be monitored.

Returns:
simulation dialog object

run

public void run(String param)
         throws Exception
Runs the simulation, managing the S interpreter processing occuring in external process.

Throws:
Exception - if anything goes wrong

writeSinterpreterInput

public abstract void writeSinterpreterInput(org.mdanderson.biostat.geneclust.SBufferedWriter bw)
Writes all S interpreter input to the output stream.

Parameters:
bw - output stream writer

writeSinterpreterInterrupt

public void writeSinterpreterInterrupt(org.mdanderson.biostat.geneclust.SBufferedWriter bw)
Writes the S interpreter input required to interrupt the simulation to the output stream. The interrupt will only happen after the "instruction" S interpreter is currently executing completes.

Parameters:
bw - output stream writer

writeSinterpreterTermination

public void writeSinterpreterTermination(org.mdanderson.biostat.geneclust.SBufferedWriter bw)
Writes the S interpreter input required to close the graphics device and terminate the external process.

Parameters:
bw - output stream writer

MDACC
Biostatistics

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