cl::utfsm::samplingSystemUI::DataPrinter Class Reference

Inheritance diagram for cl::utfsm::samplingSystemUI::DataPrinter:
Inheritance graph
[legend]
Collaboration diagram for cl::utfsm::samplingSystemUI::DataPrinter:
Collaboration graph
[legend]

List of all members.

Classes

class  Sampler

Public Member Functions

 DataPrinter (SamplingSystemGUI ssg)
double getFrecuency ()
long getReportRate ()
String getComponent ()
String getProperty ()
void setComponent (String component)
void setProperty (String property)
void setFrecuency (double f)
void setReportRate (long reportRate)
IGraphicalUpdater getWidget ()
abstract ArrayList< DataItemgetSamples ()
abstract void postProcessing ()
void startSample () throws CouldntAccessComponentEx, TypeNotSupportedEx , CouldntAccessPropertyEx, SamplingManagerException
void stopSampling ()
void pauseSampling (boolean p)
void finalize ()
void setComponentAvailable (boolean available, String reason)
boolean isComponentAvailable ()
SerializableProperty getSerializableProperty ()

Protected Member Functions

abstract void updateValue (DataItem item)

Protected Attributes

long frecuency = 1000000
long reportRate = 1
String component
String property
SamplingWidget widget

Private Attributes

Sampler samp
boolean componentAvailable = true
SamplingSystemGUI ssg = null

Static Private Attributes

static int initializations = 0

Constructor & Destructor Documentation

cl::utfsm::samplingSystemUI::DataPrinter::DataPrinter ( SamplingSystemGUI  ssg  )  [inline]

Member Function Documentation

void cl::utfsm::samplingSystemUI::DataPrinter::finalize (  )  [inline]
String cl::utfsm::samplingSystemUI::DataPrinter::getComponent (  )  [inline]

References component.

Referenced by getSerializableProperty().

double cl::utfsm::samplingSystemUI::DataPrinter::getFrecuency (  )  [inline]
String cl::utfsm::samplingSystemUI::DataPrinter::getProperty (  )  [inline]

References property.

Referenced by getSerializableProperty().

long cl::utfsm::samplingSystemUI::DataPrinter::getReportRate (  )  [inline]

References reportRate.

abstract ArrayList<DataItem> cl::utfsm::samplingSystemUI::DataPrinter::getSamples (  )  [pure virtual]
SerializableProperty cl::utfsm::samplingSystemUI::DataPrinter::getSerializableProperty (  )  [inline]
IGraphicalUpdater cl::utfsm::samplingSystemUI::DataPrinter::getWidget (  )  [inline]
boolean cl::utfsm::samplingSystemUI::DataPrinter::isComponentAvailable (  )  [inline]

References componentAvailable.

void cl::utfsm::samplingSystemUI::DataPrinter::pauseSampling ( boolean  p  )  [inline]

Pauses/unpauses the displaying of the sampling process

Parameters:
p Pause status

References componentAvailable, samp, and cl::utfsm::samplingSystemUI::DataPrinter::Sampler::setPause().

abstract void cl::utfsm::samplingSystemUI::DataPrinter::postProcessing (  )  [pure virtual]

Do a post processing once stop all samplings threads. The child class must implement it if is necessary do a post processing on samplings data stored.

See also:
Sampler

Implemented in cl::utfsm::samplingSystemUI::FilePrinter, cl::utfsm::samplingSystemUI::MemoryPrinter, cl::utfsm::samplingSystemUI::PlotPrinter, and cl::utfsm::samplingSystemUI::WidgetPrinter.

Referenced by stopSampling().

void cl::utfsm::samplingSystemUI::DataPrinter::setComponent ( String  component  )  [inline]
void cl::utfsm::samplingSystemUI::DataPrinter::setComponentAvailable ( boolean  available,
String  reason 
) [inline]

Allows to handle whether a component is or isn't available to be sampled.

Parameters:
available True if the component is currently available.
reason A explanation of the cause why the component isn't available.

Reimplemented in cl::utfsm::samplingSystemUI::FilePrinter, cl::utfsm::samplingSystemUI::MemoryPrinter, and cl::utfsm::samplingSystemUI::PlotPrinter.

References componentAvailable.

Referenced by startSample().

void cl::utfsm::samplingSystemUI::DataPrinter::setFrecuency ( double  f  )  [inline]

References frecuency.

void cl::utfsm::samplingSystemUI::DataPrinter::setProperty ( String  property  )  [inline]
void cl::utfsm::samplingSystemUI::DataPrinter::setReportRate ( long  reportRate  )  [inline]
void cl::utfsm::samplingSystemUI::DataPrinter::startSample (  )  throws CouldntAccessComponentEx, TypeNotSupportedEx , CouldntAccessPropertyEx, SamplingManagerException [inline]

Starts the sampling, connecting to ACS Manager and the Sampling Manager.

Exceptions:
CouldntAccessComponentEx Component wasn't available at the time.
TypeNotSupportedEx Sampling Manager specific exception. Some types are currently not supported in acssamp.
CouldntAccessPropertyEx 

Reimplemented in cl::utfsm::samplingSystemUI::FilePrinter, and cl::utfsm::samplingSystemUI::PlotPrinter.

References component, frecuency, initializations, cl::utfsm::samplingSystemUI::SamplingSystemGUI::MAN_NAME, property, reportRate, samp, setComponentAvailable(), cl::utfsm::samplingSystemUI::core::SamplingManagerUITool::spinUp(), and ssg.

void cl::utfsm::samplingSystemUI::DataPrinter::stopSampling (  )  [inline]
abstract void cl::utfsm::samplingSystemUI::DataPrinter::updateValue ( DataItem  item  )  [protected, pure virtual]

Member Data Documentation

Referenced by finalize(), startSample(), and stopSampling().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2