public abstract class DataPrinter extends SamplingManagerUITool
SamplingManagerUITool| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
component |
protected long |
frequency |
protected java.lang.String |
property |
protected long |
reportRate |
cl.utfsm.samplingSystemUI.DataPrinter.Sampler |
samp |
protected SamplingWidget |
widget |
info| Constructor and Description |
|---|
DataPrinter(SamplingSystemGUI ssg) |
| Modifier and Type | Method and Description |
|---|---|
void |
finalize() |
java.lang.String |
getComponent() |
double |
getFrequency()
Returns the frequency in Hz.
|
java.lang.String |
getProperty() |
long |
getReportRate() |
abstract java.util.ArrayList<DataItem> |
getSamples() |
SamplingWidget |
getSamplingWidget() |
SerializableProperty |
getSerializableProperty() |
IGraphicalUpdater |
getWidget() |
boolean |
isComponentAvailable() |
boolean |
isStopped() |
void |
pauseSampling(boolean p)
Pauses/unpauses the displaying of the sampling process
|
abstract void |
postProcessing()
Do a post processing once stop all samplings threads.
|
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 |
setFrequency(double f)
Sets the frequency in the sampObj.
|
void |
setProperty(java.lang.String property) |
void |
setReportRate(long reportRate) |
void |
startSample()
Starts the sampling, connecting to ACS Manager and the Sampling Manager.
|
void |
stopSampling() |
protected abstract void |
updateValue(DataItem item) |
componentExists, deleteSample, hashPrint, propertyExists, spinUp, startSample, stopSample, tearDownprotected long frequency
protected long reportRate
protected java.lang.String component
protected java.lang.String property
protected SamplingWidget widget
public cl.utfsm.samplingSystemUI.DataPrinter.Sampler samp
public DataPrinter(SamplingSystemGUI ssg)
public double getFrequency()
public long getReportRate()
public java.lang.String getComponent()
public java.lang.String getProperty()
public SamplingWidget getSamplingWidget()
public void setComponent(java.lang.String component)
public void setProperty(java.lang.String property)
public void setFrequency(double f)
double - frequency in Hz. Internally its converted into
the value that sampObj requires.SampObjpublic void setReportRate(long reportRate)
public IGraphicalUpdater getWidget()
protected abstract void updateValue(DataItem item)
public abstract java.util.ArrayList<DataItem> getSamples()
public abstract void postProcessing()
Samplerpublic void startSample()
throws CouldntAccessComponentEx,
TypeNotSupportedEx,
CouldntAccessPropertyEx,
SamplingManagerException
CouldntAccessComponentEx - Component wasn't available at the time.TypeNotSupportedEx - Sampling Manager specific exception. Some types are currently not supported in acssamp.CouldntAccessPropertyExSamplingManagerExceptionpublic void stopSampling()
public void pauseSampling(boolean p)
p - Pause statuspublic void finalize()
finalize in class java.lang.Objectpublic void setComponentAvailable(boolean available,
java.lang.String reason)
available - True if the component is currently available.reason - A explanation of the cause why the component isn't available.public boolean isComponentAvailable()
public boolean isStopped()
public SerializableProperty getSerializableProperty()