#include <EquipmentData.h>
Public Member Functions | |
virtual | ~EquipmentData () |
destructor | |
void | initialize () |
initializes the device | |
Static Public Member Functions | |
static EquipmentData * | getInstance () |
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 EquipmentData * | instance_ = NULL |
instance for the singleton pattern |
Definition at line 15 of file EquipmentData.h.
fesa::EquipmentData::~EquipmentData | ( | ) | [virtual] |
destructor
Definition at line 25 of file EquipmentData.cpp.
fesa::EquipmentData::EquipmentData | ( | ) | [protected] |
EquipmentData * fesa::EquipmentData::getInstance | ( | ) | [static] |
returns the unique object instance of this class in the system
Definition at line 88 of file EquipmentData.cpp.
References EquipmentData(), and instance_.
Referenced by fesa::DeviceFactoryImp< GlobalDeviceType, DomainStoreType, DevInstType >::computeMemorySize(), fesa::AbstractRTAction::executeAction(), fesa::AbstractServerDeviceClass::initialize(), fesa::DeviceFactoryImp< GlobalDeviceType, DomainStoreType, DevInstType >::initialize(), fesa::FesaDeviceServer::isRTProcessDown(), fesa::DeviceFactoryImp< GlobalDeviceType, DomainStoreType, DevInstType >::mapFields(), fesa::FesaDeviceServer::monitorOn(), fesa::AbstractRTAction::sendManualNotification(), fesa::ShmFactory< GlobalDeviceType, DomainStoreType, DevInstType >::setUpMemory(), and fesa::DeviceFactoryImp< GlobalDeviceType, DomainStoreType, DevInstType >::unmapFields().
int32_t fesa::EquipmentData::getSizeOfAdditionalFields | ( | ) | [protected, virtual] |
Get the size related to non-Fesa-type fields.
Reimplemented from fesa::DataStore.
Definition at line 41 of file EquipmentData.cpp.
Referenced by mapAdditionalFields().
void fesa::EquipmentData::initialize | ( | ) | [virtual] |
initializes the device
Reimplemented from fesa::DataStore.
Definition at line 30 of file EquipmentData.cpp.
References isInitialize_, notificationFailure_, and notificationIDreadoutFlag_.
Referenced by fesa::DeviceFactoryImp< GlobalDeviceType, DomainStoreType, DevInstType >::initialize().
void fesa::EquipmentData::mapAdditionalFields | ( | char * | p | ) | [protected, virtual] |
Map the non-Fesa-type fields.
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_.
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().
Definition at line 38 of file EquipmentData.h.
Referenced by fesa::DeviceFactoryImp< GlobalDeviceType, DomainStoreType, DevInstType >::computeMemorySize(), initialize(), mapAdditionalFields(), fesa::DeviceFactoryImp< GlobalDeviceType, DomainStoreType, DevInstType >::mapFields(), fesa::ShmFactory< GlobalDeviceType, DomainStoreType, DevInstType >::setUpMemory(), and fesa::DeviceFactoryImp< GlobalDeviceType, DomainStoreType, DevInstType >::unmapFields().
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().
processID of the RT
Definition at line 76 of file EquipmentData.h.
Referenced by fesa::AbstractRTEquipment::initialize(), mapAdditionalFields(), and fesa::ShmFactory< GlobalDeviceType, DomainStoreType, DevInstType >::setUpMemory().
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().
processID of the Server
Definition at line 81 of file EquipmentData.h.
Referenced by fesa::AbstractServerEquipment::initialize(), mapAdditionalFields(), and fesa::ShmFactory< GlobalDeviceType, DomainStoreType, DevInstType >::setUpMemory().
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().
int32_t* fesa::EquipmentData::srvProcessPid_ |
server process id
Definition at line 49 of file EquipmentData.h.
Referenced by fesa::AbstractServerDeviceClass::initialize(), mapAdditionalFields(), fesa::NotificationProducer::sendAutomaticNotification(), fesa::NotificationProducer::sendManualNotification(), and fesa::AbstractRTEquipment::waitSignal().