Public Member Functions | Package Attributes

cl.utfsm.samplingSystemUI.core.PropertySamp Class Reference

List of all members.

Public Member Functions

void run () throws CouldntAccessComponentEx, TypeNotSupportedEx, AcsJContainerServicesEx, CouldntAccessPropertyEx, CORBAProblemEx, CouldntCreateObjectEx, MemoryFaultEx, OutOfBoundsEx, AcsJException, SamplingManagerException
 PropertySamp (SampDetail sampDetail)
void stop ()

Package Attributes

SampDetail sampDetail = null
SamplingManager sManager = null
SampObj sampObject = null
NotificationChannelSuscription ncs = null
AcsInformation info = null

Detailed Description

For each sampling detail one of this classes must be created to sample the data. This class creates the notification channel, and starts the sampling. This class also provides means of stoping and cleaning up the sampling. Sampling is down in separated Thread, so the run member will return imediatly.


Constructor & Destructor Documentation

cl.utfsm.samplingSystemUI.core.PropertySamp.PropertySamp ( SampDetail  sampDetail  ) 

Assigns a SamplingManager and an AcsInformation object to the sampDetail (each sampDetail should have it's own Manager)

Parameters:
sampDetail Instance of SampDetail to be Monitored by the Manager.

References cl.utfsm.samplingSystemUI.core.AcsInformation.getInstance(), cl.utfsm.samplingSystemUI.core.SamplingManager.getInstance(), cl.utfsm.samplingSystemUI.core.PropertySamp.info, and cl.utfsm.samplingSystemUI.core.PropertySamp.sManager.


Member Function Documentation

void cl.utfsm.samplingSystemUI.core.PropertySamp.run (  )  throws CouldntAccessComponentEx, TypeNotSupportedEx, AcsJContainerServicesEx, CouldntAccessPropertyEx, CORBAProblemEx, CouldntCreateObjectEx, MemoryFaultEx, OutOfBoundsEx, AcsJException, SamplingManagerException

Generates a SamplingObject (if none exist for the target sampDetail) and creates a channel for communication

Exceptions:
CouldntAccessComponentEx 
TypeNotSupportedEx 
AcsJContainerServicesEx 
CouldntAccessPropertyEx 
CORBAProblemEx 
CouldntCreateObjectEx 
MemoryFaultEx 
OutOfBoundsEx 
AcsJException 
SamplingManagerException 

References alma.acs.nc.Consumer.consumerReady(), cl.utfsm.samplingSystemUI.core.AcsInformation.getContainerServices(), cl.utfsm.samplingSystemUI.core.SamplingManager.getSamplingObj(), cl.utfsm.samplingSystemUI.core.PropertySamp.info, cl.utfsm.samplingSystemUI.core.PropertySamp.ncs, cl.utfsm.samplingSystemUI.core.PropertySamp.sampDetail, cl.utfsm.samplingSystemUI.core.PropertySamp.sampObject, and cl.utfsm.samplingSystemUI.core.PropertySamp.sManager.

void cl.utfsm.samplingSystemUI.core.PropertySamp.stop (  ) 

Closes the Notification Channel, stops sampling of the current SampDetail and destroys the Sampling Object

References alma.acs.nc.Consumer.disconnect(), cl.utfsm.samplingSystemUI.core.PropertySamp.ncs, and cl.utfsm.samplingSystemUI.core.PropertySamp.sampObject.


Member Data Documentation


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