#include <AddressGenerator.h>
Public Member Functions | |
~AddressGenerator (void) | |
void | ReDefineAddr (void) |
calls all router and link receiver objects making them recalculate all memory addresses | |
LinkRxIntAddr & | getLRxAddr (unsigned ChNumb) |
returns a reference of a lrx addresses object | |
RoutIntAddr & | getRoutAddr (unsigned ChNumb) |
returns a reference of a router addresses object | |
BusyCardIntAddr & | getBusyCardAddr (unsigned ChNumb) |
returns a reference of a busy card addresses object | |
Static Public Member Functions | |
static AddressGenerator & | getInstance () |
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 | |
spdLogger * | log |
logger |
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
AddressGenerator::AddressGenerator | ( | ) | [private] |
private constructor this is a singleton class
AddressGenerator::~AddressGenerator | ( | void | ) |
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
ChNumb | channel number 0..119 |
RoutIntAddr & AddressGenerator::getRoutAddr | ( | unsigned | ChNumb | ) |
returns a reference of a router addresses object
ChNumb | channel number 0..119 |
BusyCardIntAddr & AddressGenerator::getBusyCardAddr | ( | unsigned | ChNumb | ) |
returns a reference of a busy card addresses object
ChNumb | channel number 0..119 |
LinkRxIntAddr AddressGenerator::LRxAddr[nHalfStaves] [private] |
internal container of link receiver adresses
RoutIntAddr AddressGenerator::RoutAddr[nRouters] [private] |
internal container of router adresses
internal container of busy card adresses
spdLogger* AddressGenerator::log [private] |
logger