CARMA C++
carma::util::PhaseSwitchingImpl Class Reference

Class to receive phase switching tables which then triggers more processing. More...

#include <carma/util/PhaseSwitchingImpl.h>

Inheritance diagram for carma::util::PhaseSwitchingImpl:
carma::util::Observable carma::correlator::obsRecord2::DefaultCorrControl carma::loberotator::Loberotator

Public Member Functions

PhaseSwitchTablegetPhaseTable180 ()
 
PhaseSwitchTablegetPhaseTable90 ()
 
void loadPhaseSwitchTable (CORBA::Long numColumns, CORBA::Long numRows90, const carma::util::PhaseTable &phaseTable90, CORBA::Long numRows180, const carma::util::PhaseTable &phaseTable180)
 
 PhaseSwitchingImpl ()
 Constructor Creates phase switching tables that are the CARMA default. More...
 
virtual ~PhaseSwitchingImpl ()
 Destructor. More...
 
- Public Member Functions inherited from carma::util::Observable
int getNumObservers ()
 Get the number of registered observers. More...
 
void notifyObservers ()
 Notify all registered Observers, by calling Observer::observerUpdate() More...
 
 Observable ()
 Constructor. More...
 
void registerObserver (Observer &observer)
 Register an Observer object to be notified when event occurs. More...
 
std::vector< int > registryIds ()
 Put all regIDs into a vector. More...
 
std::string registryToString ()
 Put all regIDs into a single line string. More...
 
void unregisterObserver (Observer &observer)
 Unregister an Observer object. More...
 
virtual ~Observable ()
 Destructor. More...
 

Detailed Description

Class to receive phase switching tables which then triggers more processing.

The processing is implemented using an observer pattern that can be customized by the recipient of the table (e.g. send to a CANbus device). This class should be inherited (via IDL) by the subsystem control DO.

With the inheritance of the POA PhaseSwitching class here and also by the subsystem control DO, which also inherits this class, creating a quasi-'diamond' inheritance diagram. To ensure that only one POA PhaseSwithing class instance is used instead of two, it is important to use the "virtual" keyword. The code will not compile without this virtual keyword.

Definition at line 47 of file PhaseSwitchingImpl.h.

Constructor & Destructor Documentation

carma::util::PhaseSwitchingImpl::PhaseSwitchingImpl ( )

Constructor Creates phase switching tables that are the CARMA default.

virtual carma::util::PhaseSwitchingImpl::~PhaseSwitchingImpl ( )
virtual

Destructor.


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