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

SampleApplication.cpp

00001 // 00002 // Copyright 2004 P&P Software GmbH - All Rights Reserved 00003 // 00004 // SampleApplication.cpp 00005 // 00006 // Version 1.0 00007 // Author A. Pasetti (P&P Software) 00008 00009 #include "CC_ComponentFactory.h" 00010 #include "CC_ComponentFactory_inc.h" 00011 #include "../FSM/CC_FSM.h" 00012 #include "../Manoeuvre/CC_ManoeuvreManager.h" 00013 #include "../Telecommand/CC_TelecommandManager.h" 00014 #include "../Telemetry/CC_TelemetryManager.h" 00015 #include "../Data/DC_ControlAction.h" 00016 #include "../GeneralInclude/TestCompilerSwitches.h" 00017 #include "../GeneralInclude/CompilerSwitches.h" 00018 #include "../GeneralInclude/Constants.h" 00019 00020 int main(int argc, char* argv[]) { 00021 00022 CC_ComponentFactory* pCompFct; 00023 00024 pCompFct = CC_ComponentFactory::getInstance(); 00025 pCompFct->configureApplication(); 00026 00027 // Perform ten ativation cycles 00028 for (unsigned int i=0; i<10; i++) { 00029 pCompFct->getFSM(CI_Nominal_FSM)->activate(); 00030 pCompFct->getFSM(CI_SM_FSM)->activate(); 00031 pCompFct->getFSM(CI_FDIR_FSM)->activate(); 00032 pCompFct->getControlAction(CI_contAction_1)->execute(); 00033 pCompFct->getControlAction(CI_contAction_2)->execute(); 00034 pCompFct->getControlAction(CI_contAction_3)->execute(); 00035 pCompFct->getControlAction(CI_contAction_4)->execute(); 00036 pCompFct->getManoeuvreManager(CI_manMan)->activate(); 00037 pCompFct->getTelecommandManager(CI_tcMan)->activate(); 00038 pCompFct->getTelemetryManager(CI_tmMan)->activate(); 00039 } 00040 00041 return 0; 00042 00043 } 00044
Copyright 2003 P&P Software GmbH - All Rights Reserved