CARMA C++
PhaseSwitchingImpl.h
Go to the documentation of this file.
1 
2 #ifndef CARMA_UTIL_PHASESWITCHINGIMPL_H
3 #define CARMA_UTIL_PHASESWITCHINGIMPL_H
4 
5 
21 #include "carma/corba/corba.h"
22 
23 #include "carma/util/Observable.h"
24 #include "carma/util/PhaseSwitching_skel.h"
25 #include "carma/util/PhaseSwitchTable.h"
26 #include "carma/util/UserException.h"
27 
28 
29 
30 namespace carma {
31  namespace util {
32 
49  virtual public POA_carma::util::PhaseSwitching {
50 
51 public:
60  virtual ~PhaseSwitchingImpl();
61 
62  // Docs are inherited from IDL
63  void loadPhaseSwitchTable( CORBA::Long numColumns,
64  CORBA::Long numRows90, const carma::util::PhaseTable& phaseTable90,
65  CORBA::Long numRows180, const carma::util::PhaseTable& phaseTable180
66  );
67  PhaseSwitchTable* getPhaseTable90();
68  PhaseSwitchTable* getPhaseTable180();
69 private:
70  PhaseSwitchTable* ps90;
71  PhaseSwitchTable* ps180;
72 };
73 
74 } } // End namespace carma::util
75 
76 
77 
78 #endif // CARMA_UTIL_PHASESWITCHINGIMPL_H
79 
80 
81 
82 
83 
84 
85 
86 
87 
The Observable class is paired with the Observer class, with the Observable class calls its observabl...
Definition: Observable.h:41
An Observable object executes a method on a registered Observer when an observable event occurs...
Class to receive phase switching tables which then triggers more processing.
PhaseSwitchingImpl()
Constructor Creates phase switching tables that are the CARMA default.
virtual ~PhaseSwitchingImpl()
Destructor.
The PhaseSwitchTable class provides a generic way of reading, writing and retreiving specific PhaseSw...