LRAUV  revA
Wait.h
Go to the documentation of this file.
1 
12 #ifndef WAIT_H_
13 #define WAIT_H_
14 
15 #include "component/Behavior.h"
16 #include "data/Location.h"
17 
29 class Wait : public Behavior
30 {
31 public:
32 
33  Wait( const Str& prefix, const Module* module );
34 
35  virtual ~Wait();
36 
38  void initialize( void );
39 
41  void run();
42 
45  bool runIfUnsatisfied();
46 
49  bool isSatisfied();
50 
52  void uninitialize( void );
53 
55  static Behavior* CreateBehavior( const Str& prefix, const Module* module );
56 
57 protected:
58 
60  bool calcSatisfied( );
61 
62  // Time at which to stop waiting
64 
66 
67  // Slate input setting variables
68 
71 
72 private:
73  // Note that the copy constructor below is private and not given a body.
74  // Any attempt to call it will return a compiler error.
75  Wait( const Wait& old ); // disallow copy constructor
76 
77 };
78 
79 #endif /*WAIT_H_*/
Timestamp endTime_
Definition: Wait.h:63
virtual ~Wait()
Definition: Wait.cpp:32
void initialize(void)
Initialize function.
Definition: Wait.cpp:36
bool runIfUnsatisfied()
Runs and returns false if not in capure radius Otherwise returns true.
Definition: Wait.cpp:48
Behavior is the abstract base class for components that implement mission behaviors and commands...
Definition: Behavior.h:32
Contains the Behavior class definition.
Module is the abstract base class for a collection of Component objects that can be contained in a lo...
Definition: Module.h:45
float durationSeconds_
Definition: Wait.h:65
SettingReader * durationSettingReader_
duration setting
Definition: Wait.h:70
Replacement for standard template class string.
Definition: Str.h:12
bool isSatisfied()
Returns true when vehicle has "arrived" within the captureRadius of the waypoint. ...
Definition: Wait.cpp:71
void run()
The actual "payload" of the component.
Definition: Wait.cpp:42
bool calcSatisfied()
return true if the waiting time is over
Definition: Wait.cpp:88
Reads values from mission settings.
Definition: SettingReader.h:26
Wait(const Str &prefix, const Module *module)
Definition: Wait.cpp:16
void uninitialize(void)
Uninit function.
Definition: Wait.cpp:77
Contains the Wait Command.
Definition: Wait.h:29
Contains the Location class definition.
Represents absolute times.
Definition: Timestamp.h:31
static Behavior * CreateBehavior(const Str &prefix, const Module *module)
Mission Component factory interface.
Definition: Wait.cpp:83