Public Member Functions | Public Attributes | Private Attributes
predicate_manager::Dependencies Class Reference

#include <dependencies.h>

List of all members.

Public Member Functions

Dependencies add (const std::string &name)
 Specifies a dependency through its name.
Dependencies add (const int pm_id, const std::string &name)
Dependencies add (const NameID &dep_id)
 Specifies a dependency through a NameID. Equivalent to "add (const int pm_id, const std::string& name)".
 Dependencies ()
 Default constructor.

Public Attributes

NameIDSet dependency_set_

Private Attributes

ros::NodeHandle nh_
 The set of dependencies, to be passed onto the constructor of a Predicate.
int pm_id_
 To access the "pm_id" parameter.

Detailed Description

The Dependencies class allows a user to specify the dependencies of a Predicate through a chained declaration of the dependency labels.

For example, if Predicate "A", depends on Predicates "B","C","D", and if the "MyPredicate" class implements the desired condition, you could declare it as MyPredicate("A",Dependencies().add("B").add("C").add("D"));

Definition at line 44 of file dependencies.h.


Constructor & Destructor Documentation

Default constructor.

Definition at line 31 of file dependencies.cpp.


Member Function Documentation

Dependencies Dependencies::add ( const std::string &  name)

Specifies a dependency through its name.

Definition at line 41 of file dependencies.cpp.

Dependencies Dependencies::add ( const int  pm_id,
const std::string &  name 
)

Specifies a dependency through its parent PM and its name. You can use this form to add external dependencies (dependencies on Predicates whose implementation is not known to this agent).

Definition at line 49 of file dependencies.cpp.

Dependencies Dependencies::add ( const NameID dep_id)

Specifies a dependency through a NameID. Equivalent to "add (const int pm_id, const std::string& name)".

Definition at line 57 of file dependencies.cpp.


Member Data Documentation

Definition at line 61 of file dependencies.h.

The set of dependencies, to be passed onto the constructor of a Predicate.

Definition at line 64 of file dependencies.h.

To access the "pm_id" parameter.

Definition at line 66 of file dependencies.h.


The documentation for this class was generated from the following files:


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