Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

DC_BasicReconfigurer.h

00001 // 00002 // Copyright 2004 P&P Software GmbH - All Rights Reserved 00003 // 00004 // DC_BasicReconfigurer.h 00005 // 00006 // Version 1.0 00007 // Date 17.05.03 (Version 1.0) 00008 // Author A. Pasetti (P&P Software) 00009 00010 #ifndef DC_BasicReconfigurerH 00011 #define DC_BasicReconfigurerH 00012 00013 #include "../GeneralInclude/BasicTypes.h" 00014 #include "../Base/CC_RootObject.h" 00015 00065 class DC_BasicReconfigurer : public CC_RootObject { 00066 00067 private: 00068 TD_Config numberOfConfig; // number of configurations 00069 TD_Config active; // currently active configuration 00070 bool enableStatus; // reconfiguration enable status 00071 bool* isHealthy; // isHealthy[i] is the health status of the i-th configuration 00072 00073 public: 00074 00081 DC_BasicReconfigurer(void); 00082 00105 virtual void reconfigure(void); 00106 00119 void setNumberOfConfigurations(TD_Config nOfConfig); 00120 00131 void setHealthStatus(TD_Config i, bool healthStatus); 00132 00141 bool isConfigurationHealthy(TD_Config i) const; 00142 00169 void setActive(TD_Config activeConfig); 00170 00176 void setEnabled(bool enabled); 00177 00183 bool isEnabled(void) const; 00184 00189 TD_Config getActive(void) const; 00190 00195 TD_Config getNumberOfConfigurations(void) const; 00196 00201 void reset(void); 00202 00208 virtual bool isObjectConfigured(void); 00209 00210 }; 00211 00212 #endif
Copyright 2003 P&P Software GmbH - All Rights Reserved