Symphony 1.0
Loading...
Searching...
No Matches
Action Class Reference

Represents an abstract action that can be performed on a state. More...

#include <definitions.h>

Collaboration diagram for Action:

Public Member Functions

 Action (const std::string &name, double cost, std::shared_ptr< State > source_state, std::shared_ptr< State > effect)
 

Public Attributes

std::string name
 
double cost
 
std::shared_ptr< Statesource_state
 
std::shared_ptr< Stateeffect
 

Detailed Description

Represents an abstract action that can be performed on a state.

This class should be extended by the user to define specific actions in the problem domain.

Definition at line 43 of file definitions.h.

Constructor & Destructor Documentation

◆ Action()

Action::Action ( const std::string &  name,
double  cost,
std::shared_ptr< State source_state,
std::shared_ptr< State effect 
)
inline

Definition at line 51 of file definitions.h.

std::shared_ptr< State > effect
Definition definitions.h:48
double cost
Definition definitions.h:46
std::string name
Definition definitions.h:45
std::shared_ptr< State > source_state
Definition definitions.h:47

Member Data Documentation

◆ cost

double Action::cost

Definition at line 46 of file definitions.h.

◆ effect

std::shared_ptr<State> Action::effect

Definition at line 48 of file definitions.h.

◆ name

std::string Action::name

Definition at line 45 of file definitions.h.

◆ source_state

std::shared_ptr<State> Action::source_state

Definition at line 47 of file definitions.h.


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