LRAUV  revA
Execute.h
Go to the documentation of this file.
1 
12 #ifndef EXECUTE_H_
13 #define EXECUTE_H_
14 
15 #include "component/Behavior.h"
16 
30 class Execute : public Behavior
31 {
32 public:
33 
34  Execute( const Str& prefix, const Module* module );
35 
36  virtual ~Execute();
37 
39  void initialize( void );
40 
42  void run();
43 
45  bool isSatisfied();
46 
48  bool runIfUnsatisfied();
49 
51  void preempted();
52 
54  void uninitialize( void );
55 
57  static Behavior* CreateBehavior( const Str& prefix, const Module* module );
58 
59 protected:
60 
61  // Slate input setting variables
63 
65 
66  // Ensures it is only run once per initialization
67  bool satisfied_;
68 
69 private:
70  // Note that the copy constructor below is private and not given a body.
71  // Any attempt to call it will return a compiler error.
72  Execute( const Execute& old ); // disallow copy constructor
73 
74 };
75 
76 #endif /*EXECUTE_H_*/
Execute(const Str &prefix, const Module *module)
Definition: Execute.cpp:17
Contains the Execute Command.
Definition: Execute.h:30
bool runIfUnsatisfied()
Do the run, and return true if envelope "satisfied".
Definition: Execute.cpp:52
void run()
Just do the run: ignore the results of the satisfied.
Definition: Execute.cpp:40
Behavior is the abstract base class for components that implement mission behaviors and commands...
Definition: Behavior.h:32
static Behavior * CreateBehavior(const Str &prefix, const Module *module)
Mission Component factory interface.
Definition: Execute.cpp:81
void initialize(void)
Initialize function.
Definition: Execute.cpp:33
Contains the Behavior class definition.
bool isSatisfied()
Just do the satisfied: return true if envelope "satisfied".
Definition: Execute.cpp:46
bool satisfied_
Definition: Execute.h:67
Module is the abstract base class for a collection of Component objects that can be contained in a lo...
Definition: Module.h:45
Str commandSetting_
Definition: Execute.h:64
Replacement for standard template class string.
Definition: Str.h:12
virtual ~Execute()
Definition: Execute.cpp:29
void preempted()
Called when the mission component becomes preempted.
Definition: Execute.cpp:71
Reads values from mission settings.
Definition: SettingReader.h:26
void uninitialize(void)
Uninit function.
Definition: Execute.cpp:76
SettingReader * commandSettingReader_
Definition: Execute.h:62