Public Member Functions | Protected Attributes | Static Protected Attributes

TMCDB::MonitorPointBase Class Reference

#include <MonitorPoint.h>

Inheritance diagram for TMCDB::MonitorPointBase:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 MonitorPointBase (const char *propertyName, const ACS::TimeInterval &archivingInterval, TMCDB::DataValueType typeOfData, MonitorBlob &mb)
virtual ~MonitorPointBase ()
void setPropertySerialNumber (serialNumberTypeSeq &sn)
ACE_CString & getPropertyName ()
CORBA::Boolean negotiate (ACS::TimeInterval, const ACS::CBDescOut &)
virtual void activate (maci::ContainerServices *cs)=0
 activate corba object
virtual void deactivate (maci::ContainerServices *cs)=0
virtual void startMonitoring ()=0
 start monitoring the property (monitor point)
virtual void stopMonitoring ()=0
 stop monitoring the property (monitor point)
virtual void fillSeq ()=0
 method that puts sequence of data blobDataSeq to the any
virtual void set_archiving_interval (ACS::TimeInterval time)=0
virtual void suppress_archiving ()=0
virtual void enable_archiving ()=0

Protected Attributes

ACE_CString propertyName_m
ACS::TimeInterval archivingInterval_m
 property name
double valuePercentTrigger_m
MonitorBlob & monitorBlob_m
ACS::Monitor_var monitor_m
 here we put the values
ACS::Subscription_var subscription_m
 monitor of the property
ACS::OffShoot_var monitorCallback_m
 Subscription for the alarm of the property.
ACS::OffShoot_var alarmCallback_m
 callback CORBA reference
unsigned int curSeqPos_m
 callback CORBA reference
unsigned int curSeqInit_m
 current position to write in the sequence
bool bufferFull
 current init of the circular buffer
unsigned int seqLen_m
 status of buffer. If false data is sorted normally. If true buffer is full (data is stored but old data lost)
ACE_Thread_Mutex switchMutex_m
 sequence length
bool monitorSuppressed_m
bool alarmSuppressed_m
double alarmTimerTrigger_m
CORBA::Long backLogSize_m

Static Protected Attributes

static const unsigned int maxSeqSegments_m = 2
static const unsigned int prealocSeqLen_m = 100

Detailed Description

Class to hold data of a monitor point


Constructor & Destructor Documentation

TMCDB::MonitorPointBase::MonitorPointBase ( const char *  propertyName,
const ACS::TimeInterval &  archivingInterval,
TMCDB::DataValueType  typeOfData,
MonitorBlob &  mb 
)
virtual TMCDB::MonitorPointBase::~MonitorPointBase (  )  [virtual]

Member Function Documentation

virtual void TMCDB::MonitorPointBase::activate ( maci::ContainerServices cs  )  [pure virtual]
virtual void TMCDB::MonitorPointBase::deactivate ( maci::ContainerServices cs  )  [pure virtual]
virtual void TMCDB::MonitorPointBase::enable_archiving (  )  [pure virtual]
virtual void TMCDB::MonitorPointBase::fillSeq (  )  [pure virtual]
ACE_CString& TMCDB::MonitorPointBase::getPropertyName (  )  [inline]

References propertyName_m.

CORBA::Boolean TMCDB::MonitorPointBase::negotiate ( ACS::TimeInterval  ,
const ACS::CBDescOut  
) [inline]
virtual void TMCDB::MonitorPointBase::set_archiving_interval ( ACS::TimeInterval  time  )  [pure virtual]
void TMCDB::MonitorPointBase::setPropertySerialNumber ( serialNumberTypeSeq &  sn  ) 
virtual void TMCDB::MonitorPointBase::startMonitoring (  )  [pure virtual]
virtual void TMCDB::MonitorPointBase::stopMonitoring (  )  [pure virtual]
virtual void TMCDB::MonitorPointBase::suppress_archiving (  )  [pure virtual]

Member Data Documentation

ACS::OffShoot_var TMCDB::MonitorPointBase::alarmCallback_m [protected]

callback CORBA reference

ACS::TimeInterval TMCDB::MonitorPointBase::archivingInterval_m [protected]

property name

CORBA::Long TMCDB::MonitorPointBase::backLogSize_m [protected]

current init of the circular buffer

unsigned int TMCDB::MonitorPointBase::curSeqInit_m [protected]

current position to write in the sequence

unsigned int TMCDB::MonitorPointBase::curSeqPos_m [protected]

callback CORBA reference

const unsigned int TMCDB::MonitorPointBase::maxSeqSegments_m = 2 [static, protected]
ACS::Monitor_var TMCDB::MonitorPointBase::monitor_m [protected]

here we put the values

MonitorBlob& TMCDB::MonitorPointBase::monitorBlob_m [protected]
ACS::OffShoot_var TMCDB::MonitorPointBase::monitorCallback_m [protected]

Subscription for the alarm of the property.

const unsigned int TMCDB::MonitorPointBase::prealocSeqLen_m = 100 [static, protected]
ACE_CString TMCDB::MonitorPointBase::propertyName_m [protected]

Referenced by getPropertyName().

unsigned int TMCDB::MonitorPointBase::seqLen_m [protected]

status of buffer. If false data is sorted normally. If true buffer is full (data is stored but old data lost)

ACS::Subscription_var TMCDB::MonitorPointBase::subscription_m [protected]

monitor of the property

ACE_Thread_Mutex TMCDB::MonitorPointBase::switchMutex_m [protected]

sequence length


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