event.cpp
Go to the documentation of this file.
00001 
00025 #include <predicate_manager/dependencies.h>
00026 
00027 
00028 using namespace predicate_manager;
00029 
00030 #include <predicate_manager/event.h>
00031 
00032 #include <ros/ros.h>
00033 
00034 using namespace std;
00035 using namespace predicate_manager;
00036 
00037 
00038 Event::
00039 Event ( const string& name,
00040         const Dependencies& deps ) :
00041     PredicateDependentEntity ( deps ),
00042     name_ ( name ),
00043     trigger_ ()
00044 {}
00045 
00046 Event::
00047 Event ( const string& name ) :
00048     PredicateDependentEntity(),
00049     name_ ( name ),
00050     trigger_ ()
00051 {}
00052 
00053 std::string Event::getName()
00054 {
00055     return name_;
00056 }
00057 
00058 std::string Event::setName ( const std::string& new_name )
00059 {
00060     name_ = new_name;
00061 }
00062 
00063 void Event::setTrigger ( const boost::function<void () > trigger )
00064 {
00065     trigger_ = trigger;
00066 }
00067 
00068 void Event::triggerEvent ()
00069 {
00070     trigger_();
00071 }


predicate_manager
Author(s): Joao Reis and Joao Messias
autogenerated on Wed Aug 26 2015 12:28:34