org.mdanderson.biostat.geneclust
Class GCStreamMonitor
java.lang.Object
org.mdanderson.biostat.util.DefaultStreamMonitor
org.mdanderson.biostat.geneclust.GCStreamMonitor
- All Implemented Interfaces:
- DefaultStreamMonitorKeys, GCStreamMonitorKeys, Runnable
- public class GCStreamMonitor
- extends DefaultStreamMonitor
- implements GCStreamMonitorKeys
GCStreamMonitor - Implements application-specific stream monitoring
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 |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 streamredirect
- output streamdialog
- reference to simulation dialog
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
Copyright © 2002 M.D. Anderson Cancer Center. All Rights Reserved.