CARMA C++
|
Class to receive phase switching tables which then triggers more processing. More...
#include <carma/util/PhaseSwitchingImpl.h>
Public Member Functions | |
PhaseSwitchTable * | getPhaseTable180 () |
PhaseSwitchTable * | getPhaseTable90 () |
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... | |
![]() | |
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... | |
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.
carma::util::PhaseSwitchingImpl::PhaseSwitchingImpl | ( | ) |
Constructor Creates phase switching tables that are the CARMA default.
|
virtual |
Destructor.