PoolingOperationControl Class Reference

Class control the pooling operations*/. More...

#include <PoolingOperationControl.h>

Collaboration diagram for PoolingOperationControl:

Collaboration graph
[legend]

List of all members.

Public Member Functions

UInt32 readControlReg ()
 function to read the router control register
void readRouterErrors ()
 method to read all routers get errors and store them in the database
void setRunNumber (unsigned value)
 setter for the runNumber intenrl member
unsigned getRunNumber ()
 getter for the runNumber intenrl member
 PoolingOperationControl (SPDConfig *, DimServerServiceHandler *)
 ~PoolingOperationControl (void)
void SetTempRefreshTime (UInt32 value)
 Setter for the temperature refresh time interval.
void setRouterErrorRefreshTime (UInt32 value)
 sets the refresh time for the router error pooling
void startRouterErrorPooling (unsigned refreshTime=10000)
void stopRouterErrorPooling ()
void insertRouterErrorInTheDB (SpdRouter::RouterError error, unsigned routerNumber)
 inserts one router error in the database
void startHSTempPool (unsigned refreshTime=1000)
 Method to start the HS temperature polling.
void stopHSTempPool ()
 stops the half stave temperature polling
bool isTempPoolActive (void)
 Returns if the temperature pooling is active or not.
UInt32 PoolingFunction (void)
 Functoin to perform all pooling operations.

Private Attributes

DimServerServiceHandlerSRV
 also has a pointer to the service hand;er
SPDConfigSPD
 as a pointer to the SPd config object
spdLoggerlog
 a logger object
unsigned TempRefreshTime
 refresh time in ms
bool TemperaturePoolActive
 boolean variable stating if the temperature polling is operational
bool routerErrorPoolActive
 boolean variable stating if the router error handling is active or not
UInt32 TempStartTime
 keeps the last time the temperature was read
UInt32 RouterErrorTime
 variable storing the time when the last time there was a router error read
UInt32 RouterRefreshTime
 variable storing the refresh time, the time in ms that we want to wait between erading of the router errors
unsigned runNumber
 keeps the current run number, mainly for the router error handler


Detailed Description

Class control the pooling operations*/.

Constructor & Destructor Documentation

PoolingOperationControl::PoolingOperationControl ( SPDConfig spd,
DimServerServiceHandler srv 
)

PoolingOperationControl::~PoolingOperationControl ( void   ) 


Member Function Documentation

UInt32 PoolingOperationControl::readControlReg (  ) 

function to read the router control register

void PoolingOperationControl::readRouterErrors (  ) 

method to read all routers get errors and store them in the database

void PoolingOperationControl::setRunNumber ( unsigned  value  )  [inline]

setter for the runNumber intenrl member

unsigned PoolingOperationControl::getRunNumber (  )  [inline]

getter for the runNumber intenrl member

void PoolingOperationControl::SetTempRefreshTime ( UInt32  value  )  [inline]

Setter for the temperature refresh time interval.

void PoolingOperationControl::setRouterErrorRefreshTime ( UInt32  value  )  [inline]

sets the refresh time for the router error pooling

void PoolingOperationControl::startRouterErrorPooling ( unsigned  refreshTime = 10000  ) 

Starts the router error pooling

void PoolingOperationControl::stopRouterErrorPooling (  )  [inline]

Stops the router error pooloing

void PoolingOperationControl::insertRouterErrorInTheDB ( SpdRouter::RouterError  error,
unsigned  routerNumber 
)

inserts one router error in the database

void PoolingOperationControl::startHSTempPool ( unsigned  refreshTime = 1000  )  [inline]

Method to start the HS temperature polling.

void PoolingOperationControl::stopHSTempPool (  )  [inline]

stops the half stave temperature polling

bool PoolingOperationControl::isTempPoolActive ( void   )  [inline]

Returns if the temperature pooling is active or not.

UInt32 PoolingOperationControl::PoolingFunction ( void   ) 

Functoin to perform all pooling operations.


Member Data Documentation

DimServerServiceHandler* PoolingOperationControl::SRV [private]

also has a pointer to the service hand;er

SPDConfig* PoolingOperationControl::SPD [private]

as a pointer to the SPd config object

spdLogger* PoolingOperationControl::log [private]

a logger object

unsigned PoolingOperationControl::TempRefreshTime [private]

refresh time in ms

bool PoolingOperationControl::TemperaturePoolActive [private]

boolean variable stating if the temperature polling is operational

bool PoolingOperationControl::routerErrorPoolActive [private]

boolean variable stating if the router error handling is active or not

UInt32 PoolingOperationControl::TempStartTime [private]

keeps the last time the temperature was read

UInt32 PoolingOperationControl::RouterErrorTime [private]

variable storing the time when the last time there was a router error read

UInt32 PoolingOperationControl::RouterRefreshTime [private]

variable storing the refresh time, the time in ms that we want to wait between erading of the router errors

unsigned PoolingOperationControl::runNumber [private]

keeps the current run number, mainly for the router error handler


The documentation for this class was generated from the following files:
Generated on Tue Dec 1 12:09:52 2009 for SPD FED Server by  doxygen 1.5.4