org.mdanderson.biostat.geneclust
public abstract class SProcess extends Object
Modifier and Type | Field and Description |
---|---|
protected SimulationDialog |
dialog |
Constructor and Description |
---|
SProcess(SimulationDialog dialog) |
Modifier and Type | Method and Description |
---|---|
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.
|
protected SimulationDialog dialog
public SProcess(SimulationDialog dialog)
dialog
- dialog allows monitoring of sim progressNullPointerException
- if dialog is nullpublic SimulationDialog getDialog()
public void run(String param) throws Exception
Exception
- if anything goes wrongpublic abstract void writeSinterpreterInput(org.mdanderson.biostat.geneclust.SBufferedWriter bw)
bw
- output stream writerpublic void writeSinterpreterInterrupt(org.mdanderson.biostat.geneclust.SBufferedWriter bw)
bw
- output stream writerpublic void writeSinterpreterTermination(org.mdanderson.biostat.geneclust.SBufferedWriter bw)
bw
- output stream writerCopyright © 2002 M.D. Anderson Cancer Center. All Rights Reserved.