public class PlotPrinter extends DataPrinter
component, frequency, property, reportRate, samp, widgetinfo| Constructor and Description |
|---|
PlotPrinter(SamplingSystemGUI ssg)
Constructor, initialize the sampling counter and creates a BeanMemoryWidget for representation.
|
PlotPrinter(SamplingSystemGUI ssg,
PlotWidget widget,
int position)
Constructor, initialize the sampling counter and sets the Widget as the one passed by reference.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFilename()
Return the name of the file where the data is being dumped to, or the last file used.
|
java.util.ArrayList<DataItem> |
getSamples()
Since the samples are not stored in memory, nothing can be returned.
|
void |
postProcessing()
This method should be called after stopping the sampling.
|
void |
setComponent(java.lang.String component) |
void |
setComponentAvailable(boolean available,
java.lang.String reason)
Allows to handle whether a component is or isn't available to be sampled.
|
void |
setDumpToFile(boolean value) |
void |
setProperty(java.lang.String property) |
void |
setTimeWindow(double freq,
int time) |
void |
startSample()
Starts the sampling, connecting to ACS Manager and the Sampling Manager.
|
protected void |
updateValue(DataItem item) |
finalize, getComponent, getFrequency, getProperty, getReportRate, getSamplingWidget, getSerializableProperty, getWidget, isComponentAvailable, isStopped, pauseSampling, setFrequency, setReportRate, stopSamplingcomponentExists, deleteSample, hashPrint, propertyExists, spinUp, startSample, stopSample, tearDownpublic PlotPrinter(SamplingSystemGUI ssg)
ssg - Sampling System Gui reference.public PlotPrinter(SamplingSystemGUI ssg, PlotWidget widget, int position)
ssg - Sampling System Gui reference.widget - The Widget in that this Printer will output graphically.public java.util.ArrayList<DataItem> getSamples()
getSamples in class DataPrinterpublic java.lang.String getFilename()
public void startSample()
throws CouldntAccessComponentEx,
TypeNotSupportedEx,
CouldntAccessPropertyEx,
SamplingManagerException
startSample in class DataPrinterCouldntAccessComponentEx - Component wasn't available at the time.TypeNotSupportedEx - Sampling Manager specific exception. Some types are currently not supported in acssamp.CouldntAccessPropertyExSamplingManagerExceptionpublic void postProcessing()
postProcessing in class DataPrinterSamplerprotected void updateValue(DataItem item)
updateValue in class DataPrinterpublic void setComponent(java.lang.String component)
setComponent in class DataPrinterpublic void setProperty(java.lang.String property)
setProperty in class DataPrinterpublic void setComponentAvailable(boolean available,
java.lang.String reason)
DataPrintersetComponentAvailable in class DataPrinteravailable - True if the component is currently available.reason - A explanation of the cause why the component isn't available.public void setTimeWindow(double freq,
int time)
public void setDumpToFile(boolean value)