AddressGenerator Class Reference

Class that keeps all memory address of registers in routers, LRXs and Busy Card. More...

#include <AddressGenerator.h>

Collaboration diagram for AddressGenerator:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ~AddressGenerator (void)
void ReDefineAddr (void)
 calls all router and link receiver objects making them recalculate all memory addresses
LinkRxIntAddrgetLRxAddr (unsigned ChNumb)
 returns a reference of a lrx addresses object
RoutIntAddrgetRoutAddr (unsigned ChNumb)
 returns a reference of a router addresses object
BusyCardIntAddrgetBusyCardAddr (unsigned ChNumb)
 returns a reference of a busy card addresses object

Static Public Member Functions

static AddressGeneratorgetInstance ()
 method to get the only instance of the adress generator

Private Member Functions

 AddressGenerator ()
 private constructor this is a singleton class

Private Attributes

LinkRxIntAddr LRxAddr [nHalfStaves]
 internal container of link receiver adresses
RoutIntAddr RoutAddr [nRouters]
 internal container of router adresses
BusyCardIntAddr BusyCardAddr [nBusyCards]
 internal container of busy card adresses
spdLoggerlog
 logger


Detailed Description

Class that keeps all memory address of registers in routers, LRXs and Busy Card.

its a sigleton class. It keeps as internal members classes for all router adresses, link rx's and busy card's it initializes them and has getters for these


Constructor & Destructor Documentation

AddressGenerator::AddressGenerator (  )  [private]

private constructor this is a singleton class

AddressGenerator::~AddressGenerator ( void   ) 


Member Function Documentation

AddressGenerator & AddressGenerator::getInstance (  )  [static]

method to get the only instance of the adress generator

void AddressGenerator::ReDefineAddr ( void   ) 

calls all router and link receiver objects making them recalculate all memory addresses

LinkRxIntAddr & AddressGenerator::getLRxAddr ( unsigned  ChNumb  ) 

returns a reference of a lrx addresses object

Parameters:
ChNumb channel number 0..119
Returns:
lrx addresses object reference

RoutIntAddr & AddressGenerator::getRoutAddr ( unsigned  ChNumb  ) 

returns a reference of a router addresses object

Parameters:
ChNumb channel number 0..119
Returns:
rotuer addresses object reference

BusyCardIntAddr & AddressGenerator::getBusyCardAddr ( unsigned  ChNumb  ) 

returns a reference of a busy card addresses object

Parameters:
ChNumb channel number 0..119
Returns:
busy card addresses object reference


Member Data Documentation

LinkRxIntAddr AddressGenerator::LRxAddr[nHalfStaves] [private]

internal container of link receiver adresses

RoutIntAddr AddressGenerator::RoutAddr[nRouters] [private]

internal container of router adresses

BusyCardIntAddr AddressGenerator::BusyCardAddr[nBusyCards] [private]

internal container of busy card adresses

spdLogger* AddressGenerator::log [private]

logger


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