Public Member Functions | Protected Member Functions

cl.utfsm.samplingSystemUI.FilePrinter Class Reference

Inheritance diagram for cl.utfsm.samplingSystemUI.FilePrinter:
cl.utfsm.samplingSystemUI.DataPrinter cl.utfsm.samplingSystemUI.core.SamplingManagerUITool

List of all members.

Public Member Functions

 FilePrinter (SamplingSystemGUI ssg)
ArrayList< DataItemgetSamples ()
String getFilename ()
void startSample () throws CouldntAccessComponentEx, TypeNotSupportedEx,CouldntAccessPropertyEx, SamplingManagerException
void postProcessing ()
void setComponent (String component)
void setProperty (String property)
void setComponentAvailable (boolean available, String reason)

Protected Member Functions

void updateValue (DataItem item)

Detailed Description

Printer class that acts takes the data that comming from the sampling manager, and do something with it.
In this case, the FilePrinter class dumps the data to a file.

Author:
Arturo Hoffstadt Urrutia <ahoffsta[AT]inf.utfsm.cl>

Constructor & Destructor Documentation

cl.utfsm.samplingSystemUI.FilePrinter.FilePrinter ( SamplingSystemGUI  ssg  ) 

Constructor, initialize the sampling counter and creates a BeanMemoryWidget for representation.

Parameters:
ssg Sampling System Gui reference.

References cl.utfsm.samplingSystemUI.DataPrinter.widget.


Member Function Documentation

String cl.utfsm.samplingSystemUI.FilePrinter.getFilename (  ) 

Return the name of the file where the data is being dumped to, or the last file used.

Returns:
ArrayList<DataItem> cl.utfsm.samplingSystemUI.FilePrinter.getSamples (  )  [virtual]

Since the samples are not stored in memory, nothing can be returned.

Implements cl.utfsm.samplingSystemUI.DataPrinter.

void cl.utfsm.samplingSystemUI.FilePrinter.postProcessing (  )  [virtual]
void cl.utfsm.samplingSystemUI.FilePrinter.setComponent ( String  component  ) 
void cl.utfsm.samplingSystemUI.FilePrinter.setComponentAvailable ( boolean  available,
String  reason 
)

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 from cl.utfsm.samplingSystemUI.DataPrinter.

References cl.utfsm.samplingSystemUI.IGraphicalUpdater.setComponentAvailable(), and cl.utfsm.samplingSystemUI.DataPrinter.widget.

void cl.utfsm.samplingSystemUI.FilePrinter.setProperty ( String  property  ) 
void cl.utfsm.samplingSystemUI.FilePrinter.startSample (  )  throws CouldntAccessComponentEx, TypeNotSupportedEx,CouldntAccessPropertyEx, SamplingManagerException

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.

Reimplemented from cl.utfsm.samplingSystemUI.DataPrinter.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties