Static Protected Member Functions | Static Protected Attributes

cl.utfsm.samplingSystemUI.core.SamplingManagerUITool Class Reference

Inheritance diagram for cl.utfsm.samplingSystemUI.core.SamplingManagerUITool:
cl.utfsm.example.SampTool cl.utfsm.samplingSystemUI.DataPrinter cl.utfsm.samplingSystemUI.SampTool cl.utfsm.samplingSystemUI.FilePrinter cl.utfsm.samplingSystemUI.MemoryPrinter cl.utfsm.samplingSystemUI.PlotPrinter cl.utfsm.samplingSystemUI.WidgetPrinter

List of all members.

Static Protected Member Functions

static void spinUp (String clientName, String managerName) throws AcsInformationException, SamplingManagerException, AcsJContainerEx
static void startSample (SampDetail sDetail) throws CouldntAccessComponentEx, TypeNotSupportedEx, CouldntAccessPropertyEx, SamplingManagerException
static void stopSample (SampDetail sDetail)
static void deleteSample (SampDetail sDetail)
static void tearDown () throws Exception
static void hashPrint ()
static boolean componentExists (String componentName)
static boolean propertyExists (String componentName, String propertyName)

Static Protected Attributes

static AcsInformation info = null

Detailed Description

The class is a base class for sampling tools. A tool must extend this class and implement a static main. Usage of the sampling system must only be done through the member provided by this class.


Member Function Documentation

static boolean cl.utfsm.samplingSystemUI.core.SamplingManagerUITool.componentExists ( String  componentName  )  [static, protected]

Wraper that checks if a component exists.

Parameters:
componetName the name of the component.

References cl.utfsm.samplingSystemUI.core.AcsInformation.componentExists(), and cl.utfsm.samplingSystemUI.core.SamplingManagerUITool.info.

Referenced by cl.utfsm.example.SampTool.main().

static void cl.utfsm.samplingSystemUI.core.SamplingManagerUITool.deleteSample ( SampDetail  sDetail  )  [static, protected]

Stop and delete from the internal structures the sampling identified by a SampDetail.

See also:
SampDetail

References cl.utfsm.samplingSystemUI.core.SamplingManagerUITool.stopSample().

static void cl.utfsm.samplingSystemUI.core.SamplingManagerUITool.hashPrint (  )  [static, protected]
static boolean cl.utfsm.samplingSystemUI.core.SamplingManagerUITool.propertyExists ( String  componentName,
String  propertyName 
) [static, protected]

Wraper that checks if a property exists given a component.

Parameters:
componetName the name of the component.
propertyName the name of the property.

References cl.utfsm.samplingSystemUI.core.SamplingManagerUITool.info, and cl.utfsm.samplingSystemUI.core.AcsInformation.propertyExists().

Referenced by cl.utfsm.example.SampTool.main().

static void cl.utfsm.samplingSystemUI.core.SamplingManagerUITool.spinUp ( String  clientName,
String  managerName 
) throws AcsInformationException, SamplingManagerException, AcsJContainerEx [static, protected]

Prepares the conection to the ACS infrastructure. This member creates two objects, an AcsInformation and a SamplingManager. This two are the links with the ACS infrastructure.

Parameters:
clientName string tha contains the name with which the tool will register with ACS.
managerName string that contains the name of the sampling manager in the container. This manager is specified in the CDB.
Exceptions:
AcsJContainerEx 
See also:
AcsInformation
SamplingManager

References cl.utfsm.samplingSystemUI.core.AcsInformation.getInstance(), and cl.utfsm.samplingSystemUI.core.SamplingManagerUITool.info.

Referenced by cl.utfsm.example.SampTool.main(), and cl.utfsm.samplingSystemUI.DataPrinter.startSample().

static void cl.utfsm.samplingSystemUI.core.SamplingManagerUITool.startSample ( SampDetail  sDetail  )  throws CouldntAccessComponentEx, TypeNotSupportedEx, CouldntAccessPropertyEx, SamplingManagerException [static, protected]

Start the sampling of a property. This member will start a PropertySamp object, which will run in a separeted Thread.

Parameters:
sDetail a SampDetail object that contains the specification for the sampling.
Exceptions:
CouldntAccessComponentEx 
TypeNotSupportedEx 
CouldntAccessPropertyEx 
SamplingManagerException 
See also:
SampDetail
PropertySamp

Referenced by cl.utfsm.example.SampTool.main().

static void cl.utfsm.samplingSystemUI.core.SamplingManagerUITool.stopSample ( SampDetail  sDetail  )  [static, protected]

Stop the sampling of a property identified by a SampDetail.

See also:
SampDetail

Referenced by cl.utfsm.samplingSystemUI.core.SamplingManagerUITool.deleteSample().

static void cl.utfsm.samplingSystemUI.core.SamplingManagerUITool.tearDown (  )  throws Exception [static, protected]

Member Data Documentation


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