MDACC
Biostatistics

org.mdanderson.biostat.geneclust
Class GCStreamMonitor

java.lang.Object
  extended byorg.mdanderson.biostat.util.DefaultStreamMonitor
      extended byorg.mdanderson.biostat.geneclust.GCStreamMonitor
All Implemented Interfaces:
DefaultStreamMonitorKeys, GCStreamMonitorKeys, Runnable

public class GCStreamMonitor
extends DefaultStreamMonitor
implements GCStreamMonitorKeys

GCStreamMonitor - Implements application-specific stream monitoring


Field Summary
 
Fields inherited from interface org.mdanderson.biostat.geneclust.GCStreamMonitorKeys
ERR_TRANSLATE_KEY, MONITOR_APP_PROCESSING_COMPLETE, MONITOR_APP_PROCESSING_INPUT, MONITOR_APP_TERMINATED, MONITOR_CREATE_MATRIX, MONITOR_DISPLAY_RESULTS, MONITOR_ERR_FATAL, MONITOR_ERR_NO_CLUSTERS_LEFT, MONITOR_ERR_RECOVERABLE, MONITOR_ESTIMATE_OPT_CLUSTER_SIZE, MONITOR_EXTRACT_CLUSTER, MONITOR_HIERARCHICAL_CLUSTERING, MONITOR_ORTHOGONALIZE_MATRIX, MONITOR_RANDOMIZE_MATRIX, MONITOR_READ_MATRIX, MONITOR_SHAVE_INIT_NESTED_SEQUENCE, MONITOR_SHAVE_RAND_NESTED_SEQUENCE
 
Fields inherited from interface org.mdanderson.biostat.util.DefaultStreamMonitorKeys
STREAMMONITOR_AWAITING_INPUT, STREAMMONITOR_DONE, STREAMMONITOR_END_OF_INPUT, STREAMMONITOR_STARTED, STREAMMONITOR_TAG
 
Constructor Summary
GCStreamMonitor(InputStream is, OutputStream redirect, SimulationDialog dialog)
          Class constructor specifying input stream, output stream, and dialog where results should be displayed
 
Method Summary
protected  String processLine(String line)
          Processes the output from the input stream, checking for embedded messages destined for the GUI.
 
Methods inherited from class org.mdanderson.biostat.util.DefaultStreamMonitor
disableEcho, echoOutput, enableEcho, run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GCStreamMonitor

public GCStreamMonitor(InputStream is,
                       OutputStream redirect,
                       SimulationDialog dialog)
Class constructor specifying input stream, output stream, and dialog where results should be displayed

Parameters:
is - input stream
redirect - output stream
dialog - reference to simulation dialog
Method Detail

processLine

protected String processLine(String line)
Processes the output from the input stream, checking for embedded messages destined for the GUI. If an embedded message is found, it is formatted appropriately and displayed on the dialog.

Overrides:
processLine in class DefaultStreamMonitor
Parameters:
line - string containing external process output
Returns:
string containing possibly reformatted output
Throws:
NullPointerException - if line is null

MDACC
Biostatistics

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