PilotTrans.h
Go to the documentation of this file.00001
00002 #ifndef INCLUDED_PilotTrans_h_
00003 #define INCLUDED_PilotTrans_h_
00004
00005 #include "Behaviors/Transition.h"
00006 #include "Events/PilotEvent.h"
00007 #include "Events/EventRouter.h"
00008 #include "Crew/PilotTypes.h"
00009
00010
00011
00012
00013
00014
00015
00016
00017 class PilotTrans : public Transition {
00018 public:
00019
00020 PilotTrans(StateNode *destination) :
00021 Transition(destination), errorType(), valueSupplied(false), savedEvent() {}
00022
00023
00024 PilotTrans(StateNode *destination, DualCoding::PilotTypes::ErrorType_t value) :
00025 Transition(destination), errorType(value), valueSupplied(true), savedEvent() {}
00026
00027
00028 PilotTrans(const std::string &name, StateNode *destination) :
00029 Transition(name,destination), errorType(), valueSupplied(false), savedEvent() {}
00030
00031
00032 PilotTrans(const std::string &name, StateNode *destination, DualCoding::PilotTypes::ErrorType_t value) :
00033 Transition(name,destination), errorType(value), valueSupplied(true), savedEvent() {}
00034
00035
00036 PilotTrans(const PilotTrans &src);
00037
00038 virtual void postStart();
00039 virtual void doEvent();
00040
00041 protected:
00042 DualCoding::PilotTypes::ErrorType_t errorType;
00043 bool valueSupplied;
00044 PilotEvent savedEvent;
00045
00046 private:
00047 PilotTrans& operator=(const PilotTrans& src);
00048
00049 };
00050
00051 #endif