Fawkes API
Fawkes Development Version
|
A representation of an action used by the STN generator. More...
#include "domain_action.h"
Public Member Functions | |
DomainAction (const std::string &name, const std::vector< std::string > ¶ms, const std::vector< Predicate > &preconds, const std::vector< Predicate > &effects, int duration=0, const std::vector< std::string > &cond_breakups={}, const std::vector< std::string > &temp_breakups={}) | |
Constructor. More... | |
const std::string | getName () |
Get the name of the action. More... | |
const std::vector< std::string > | params () |
Get the list of parameters of the action. More... | |
StnAction | generateStnAction (const std::string &name, const std::string ¶ms) |
Generate an StnAction from the DomainAction. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &, const DomainAction &) |
Print a DomainAction. More... | |
A representation of an action used by the STN generator.
Definition at line 39 of file domain_action.h.
fawkes::stn::DomainAction::DomainAction | ( | const std::string & | name, |
const std::vector< std::string > & | params, | ||
const std::vector< Predicate > & | preconds, | ||
const std::vector< Predicate > & | effects, | ||
int | duration = 0 , |
||
const std::vector< std::string > & | cond_breakups = {} , |
||
const std::vector< std::string > & | temp_breakups = {} |
||
) |
Constructor.
name | The name of the action |
params | The list of parameters of the action |
preconds | A list of preconditions, each precondition is a Predicate |
effects | A list of effects, each effect is a Predicate |
duration | The duration of the action |
cond_breakups | A list of conditional breakups |
temp_breakups | A list of temporal breakups |
Definition at line 40 of file domain_action.cpp.
StnAction fawkes::stn::DomainAction::generateStnAction | ( | const std::string & | name, |
const std::string & | params | ||
) |
Generate an StnAction from the DomainAction.
name | The name of the resulting StnAction. |
params | The parameters of the resulting StnAction. |
Definition at line 115 of file domain_action.cpp.
References params().
Referenced by fawkes::stn::Stn::generate().
const std::string fawkes::stn::DomainAction::getName | ( | void | ) |
Get the name of the action.
Definition at line 95 of file domain_action.cpp.
const std::vector< std::string > fawkes::stn::DomainAction::params | ( | ) |
Get the list of parameters of the action.
Definition at line 104 of file domain_action.cpp.
Referenced by generateStnAction().
|
friend |
Print a DomainAction.
This prints all relevant facts about a DomainAction including its name, preconditions, effects.
strm | The std::ostream to pass the information to. |
a | The DomainAction to print. |
Definition at line 63 of file domain_action.cpp.