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

Manoeuvre.h

00001 // 00002 // Copyright 2004 P&P Software GmbH - All Rights Reserved 00003 // 00004 // Manoeuvre.h 00005 // 00006 // Version 1.0 00007 // Date 10.04.03 00008 // Author A. Pasetti (P&P Software) 00009 00010 #ifndef ManoeuvreH 00011 #define ManoeuvreH 00012 00013 #include "../GeneralInclude/ForwardDeclarations.h" 00014 #include "../GeneralInclude/BasicTypes.h" 00015 #include "../Base/CC_RootObject.h" 00016 00120 class Manoeuvre: public CC_RootObject { 00121 00122 private: 00123 bool executing; 00124 bool inUse; 00125 bool enabled; 00126 bool suspended; 00127 unsigned int activationStepCounter; 00128 00129 protected: 00130 00138 virtual void doInternalContinue(void) = 0; 00139 00148 virtual void internalAbort(void); 00149 00158 virtual void internalTerminate(void); 00159 00169 virtual bool internalCanStart(void); 00170 00171 public: 00172 00179 Manoeuvre(void); 00180 00200 virtual bool canStart(void); 00201 00213 virtual void initialize(void); 00214 00229 virtual bool canContinue(void); 00230 00241 virtual TD_CheckCode getContinuationCheckCode(void) const; 00242 00282 void doContinue(void); 00283 00317 void abort(void); 00318 00343 void terminate(void); 00344 00353 virtual bool isFinished(void) = 0; 00354 00361 void setInUse(bool newInUse); 00362 00367 bool isInUse(void) const; 00368 00383 void setIsSuspended(bool newIsSuspended); 00384 00389 bool isSuspended(void) const; 00390 00395 bool isExecuting(void) const; 00396 00402 void setEnabled(bool isEnabled); 00403 00408 bool isEnabled(void) const; 00409 00415 unsigned int getActivationStepCounter(void) const; 00416 00417 }; 00418 00419 #endif 00420
Copyright 2003 P&P Software GmbH - All Rights Reserved