fesa::AbstractServerEquipment Class Reference

This class contains all the AbstractServerDeviceClass for the equipment and validates the requests from external clients. It also lets retrieve the devices by its name. More...

#include <AbstractServerEquipment.h>

Inheritance diagram for fesa::AbstractServerEquipment:
fesa::AbstractComponentEquipment

List of all members.

Public Member Functions

void initialize ()
 this method configures the equipment component
void start (RunMode runMode)
 this method starts the equipment
AbstractServerDeviceClassgetServerDeviceClass (const std::string &serverDeviceClass)
 this method returns the AbstractServerDeviceClass of the class passed by parameter
AbstractServerDeviceClassgetDeviceClassFromDeviceName (const std::string &devicename)
 this method searches and returns the class, which is responsible for the given device
void reportErrorToAllSubscribers (std::string Message)
 this method generates an Listener error for all subscribers of this equipment
AbstractServerControllergetServerController ()
 Returns the single reference of the Server Controller.

Static Public Member Functions

static AbstractServerEquipmentgetInstance ()
 Singleton implementation.

Protected Member Functions

 AbstractServerEquipment ()
 Constructor.
virtual ~AbstractServerEquipment ()
 destructor
void waitSignal ()
 Blocking call that waits for and treats signals.
const std::string getServerNameFromConfigurationFile ()

Protected Attributes

AbstractServerControllerpServerController_
FesaDeviceServerpFesaDeviceServer_
 pointer to the RDA Device Server
SubscriptionTreeManagerpSubscriptionTreeManager_

Static Protected Attributes

static AbstractServerEquipmenttheInstance_ = NULL
 the single instance

Detailed Description

This class contains all the AbstractServerDeviceClass for the equipment and validates the requests from external clients. It also lets retrieve the devices by its name.

Definition at line 22 of file AbstractServerEquipment.h.


Constructor & Destructor Documentation

fesa::AbstractServerEquipment::AbstractServerEquipment (  )  [protected]
fesa::AbstractServerEquipment::~AbstractServerEquipment (  )  [protected, virtual]

Member Function Documentation

AbstractServerDeviceClass * fesa::AbstractServerEquipment::getDeviceClassFromDeviceName ( const std::string &  devicename  ) 
AbstractServerEquipment * fesa::AbstractServerEquipment::getInstance (  )  [inline, static]
AbstractServerController * fesa::AbstractServerEquipment::getServerController (  ) 

Returns the single reference of the Server Controller.

Returns:
pointer to the Server Controller

Definition at line 169 of file AbstractServerEquipment.cpp.

References pServerController_.

AbstractServerDeviceClass * fesa::AbstractServerEquipment::getServerDeviceClass ( const std::string &  serverDeviceClass  )  [inline]
const std::string fesa::AbstractServerEquipment::getServerNameFromConfigurationFile (  )  [protected]
void fesa::AbstractServerEquipment::initialize (  )  [virtual]
void fesa::AbstractServerEquipment::reportErrorToAllSubscribers ( std::string  Message  ) 

this method generates an Listener error for all subscribers of this equipment

Parameters:
Messsage The error message

Definition at line 156 of file AbstractServerEquipment.cpp.

References fesa::AbstractComponentEquipment::getDeviceClassCol(), getInstance(), and fesa::AbstractEquipment::getServerComponent().

void fesa::AbstractServerEquipment::start ( RunMode  runMode  )  [virtual]

this method starts the equipment

Parameters:
runMode indicates if thread should block on this call or keep run

Implements fesa::AbstractComponentEquipment.

Definition at line 84 of file AbstractServerEquipment.cpp.

References fesa::blocking, getInstance(), pFesaDeviceServer_, pServerController_, fesa::FesaDeviceServer::start(), fesa::AbstractServerController::start(), and waitSignal().

void fesa::AbstractServerEquipment::waitSignal (  )  [protected, virtual]

Member Data Documentation

pointer to the RDA Device Server

Definition at line 96 of file AbstractServerEquipment.h.

Referenced by AbstractServerEquipment(), start(), and ~AbstractServerEquipment().

Definition at line 104 of file AbstractServerEquipment.h.

Referenced by AbstractServerEquipment(), and waitSignal().

fesa::AbstractServerEquipment::theInstance_ = NULL [static, protected]

the single instance

Definition at line 102 of file AbstractServerEquipment.h.

Referenced by AbstractServerEquipment(), and getInstance().


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

Generated on 18 Jan 2013 for Fesa by  doxygen 1.6.1