fesa::EquipmentData Class Reference

#include <EquipmentData.h>

Inheritance diagram for fesa::EquipmentData:
fesa::DataStore

List of all members.

Public Member Functions

virtual ~EquipmentData ()
 destructor
void initialize ()
 initializes the device

Static Public Member Functions

static EquipmentDatagetInstance ()
 returns the unique object instance of this class in the system

Public Attributes

bool * isInitialize_
bool * notificationIDreadoutFlag_
 Flag that shows the server side whether the real-time side has written the NotificationID collection to a file.
int32_t * srvProcessPid_
 server process id
bool * notificationFailure_
 This fault field is raised in case there is an error posting a message in the notification queue, used to comunicate RT and server parts.
bool * hasRt_
 Set to true if the Equipment defines any scheduling-Unit.
bool * rtUp_
 false at start-up, raised as soon as RTEquipment ends its initialization; and lower by SignalHandler
bool * serverUp_
 false at start-up, raised as soon as ServerEquipment ends its initialization; and lower by SignalHandler
pid_t * rtProcessID_
 processID of the RT
pid_t * serverProcessID_
 processID of the Server

Protected Member Functions

 EquipmentData ()
int32_t getSizeOfAdditionalFields ()
 Get the size related to non-Fesa-type fields.
void mapAdditionalFields (char *p)
 Map the non-Fesa-type fields.

Static Protected Attributes

static EquipmentDatainstance_ = NULL
 instance for the singleton pattern

Detailed Description

Definition at line 15 of file EquipmentData.h.


Constructor & Destructor Documentation

fesa::EquipmentData::~EquipmentData (  )  [virtual]

destructor

Definition at line 25 of file EquipmentData.cpp.

fesa::EquipmentData::EquipmentData (  )  [protected]

Constructor

Definition at line 12 of file EquipmentData.cpp.

Referenced by getInstance().


Member Function Documentation

EquipmentData * fesa::EquipmentData::getInstance (  )  [static]
int32_t fesa::EquipmentData::getSizeOfAdditionalFields (  )  [protected, virtual]

Get the size related to non-Fesa-type fields.

Returns:
The size related to specific non-Fesa-type fields

Reimplemented from fesa::DataStore.

Definition at line 41 of file EquipmentData.cpp.

Referenced by mapAdditionalFields().

void fesa::EquipmentData::initialize (  )  [virtual]
void fesa::EquipmentData::mapAdditionalFields ( char *  p  )  [protected, virtual]

Map the non-Fesa-type fields.

Parameters:
Pointer to the allocated memory

Reimplemented from fesa::DataStore.

Definition at line 56 of file EquipmentData.cpp.

References getSizeOfAdditionalFields(), hasRt_, isInitialize_, notificationFailure_, notificationIDreadoutFlag_, rtProcessID_, rtUp_, serverProcessID_, serverUp_, and srvProcessPid_.


Member Data Documentation

Set to true if the Equipment defines any scheduling-Unit.

Definition at line 61 of file EquipmentData.h.

Referenced by fesa::FesaDeviceServer::isRTProcessDown(), and mapAdditionalFields().

EquipmentData * fesa::EquipmentData::instance_ = NULL [static, protected]

instance for the singleton pattern

Definition at line 107 of file EquipmentData.h.

Referenced by getInstance().

This fault field is raised in case there is an error posting a message in the notification queue, used to comunicate RT and server parts.

Definition at line 56 of file EquipmentData.h.

Referenced by initialize(), mapAdditionalFields(), fesa::FesaDeviceServer::monitorOn(), fesa::NotificationConsumer::run(), fesa::NotificationProducer::sendAutomaticNotification(), and fesa::NotificationProducer::sendManualNotification().

Flag that shows the server side whether the real-time side has written the NotificationID collection to a file.

Definition at line 43 of file EquipmentData.h.

Referenced by initialize(), fesa::NotificationIDManager::load(), mapAdditionalFields(), and fesa::NotificationIDManager::save().

false at start-up, raised as soon as RTEquipment ends its initialization; and lower by SignalHandler

Definition at line 66 of file EquipmentData.h.

Referenced by fesa::AbstractRTEquipment::initialize(), fesa::FesaDeviceServer::isRTProcessDown(), mapAdditionalFields(), and fesa::AbstractRTEquipment::waitSignal().

false at start-up, raised as soon as ServerEquipment ends its initialization; and lower by SignalHandler

Definition at line 71 of file EquipmentData.h.

Referenced by fesa::AbstractRTAction::executeAction(), fesa::AbstractServerEquipment::initialize(), mapAdditionalFields(), fesa::AbstractRTAction::sendManualNotification(), and fesa::AbstractServerEquipment::waitSignal().


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

Generated on 18 Jan 2013 for Fesa by  doxygen 1.6.1