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

DC_DummyPunctualAction.cpp

00001 // 00002 // Copyright 2004 P&P Software GmbH - All Rights Reserved 00003 // 00004 // DC_DummyPunctualAction.cpp 00005 // 00006 // Version 1.1 00007 // Date 01.10.02 (Version 1.0) 00008 // 30.09.03 (Version 1.1) 00009 // Author A. Pasetti (P&P Software), R. Totaro 00010 // 00011 // Change Record: 00012 // Version 1.1: Added an activation counter and its getter method 00013 00014 #include "../GeneralInclude/CompilerSwitches.h" 00015 #include "../GeneralInclude/ClassId.h" 00016 #include "../GeneralInclude/Constants.h" 00017 #include "DC_DummyPunctualAction.h" 00018 00019 DC_DummyPunctualAction::DC_DummyPunctualAction(void) { 00020 counter=0; 00021 setClassId(ID_DUMMYPUNCTUALACTION); 00022 } 00023 00024 TD_ActionOutcome DC_DummyPunctualAction::doAction(void) { 00025 ++counter; 00026 return ACTION_SUCCESS; 00027 } 00028 00029 unsigned int DC_DummyPunctualAction::getActivationCounter(void) const { 00030 return counter; 00031 }
Copyright 2003 P&P Software GmbH - All Rights Reserved