Class sdm::AlphaStar::AlphaStarItem

Class List > sdm > AlphaStar > AlphaStarItem

The state in terms of A* algorithm.

  • #include <alpha_star.hpp>

Inherits the following classes: sdm::State

Public Attributes

Type Name
std::shared_ptr< State > current_element
int horizon_
double value_f_
double value_g_

Public Functions

Type Name
AlphaStarItem (const std::shared_ptr< State > & element, double value_g, double value_f, int horizon)
bool operator< (std::shared_ptr< AlphaStarItem > const & b)
virtual std::string str () const
Get a string describing the current item.

Public Functions inherited from sdm::State

See sdm::State

Type Name
virtual TypeState getTypeState () const
virtual size_t hash () const
Get the hash of the state. The hash is used in tabular value functions in order to compare efficiently two states. This function must be reimplemented in inherited classes.
virtual bool operator== (const std::shared_ptr< State > & other) const
Check equality between two states. This function must be implemented in inherited classes.
virtual std::string str () const = 0
Get a string describing the current item.
virtual std::shared_ptr< BeliefInterface > toBelief ()
Cast the state into a belief.
virtual std::shared_ptr< HistoryInterface > toHistory ()
Cast the state into a history.
virtual std::shared_ptr< OccupancyStateInterface > toOccupancyState ()
Cast the state into an occupancy state.
virtual std::shared_ptr< BaseSerialInterface > toSerial ()
Cast the state into a serial interface.
virtual std::shared_ptr< SerialOccupancyInterface > toSerialOccupancyState ()
Cast the state into a serial occupancy state.
virtual ~State ()

Public Functions inherited from sdm::Observation

See sdm::Observation

Type Name
virtual std::string str () const = 0
Get a string describing the current item.
virtual ~Observation ()

Public Functions inherited from sdm::Item

See sdm::Item

Type Name
virtual std::shared_ptr< Item > getPointer ()
Get the shared_ptr on current (this) item.
virtual bool isBaseItem ()
virtual std::string str () const = 0
Get a string describing the current item.
std::shared_ptr< T > to ()
virtual std::shared_ptr< Action > toAction ()
Cast the item into a pointer on action.
virtual std::shared_ptr< Item > toItem ()
Cast the item into a pointer on item.
virtual std::shared_ptr< Observation > toObservation ()
Cast the item into a pointer on observation.
virtual std::shared_ptr< State > toState ()
Cast the item into a pointer on state.

Public Functions inherited from std::inheritable_enable_shared_from_this

See std::inheritable_enable_shared_from_this

Type Name
std::shared_ptr< Down > downcasted_shared_from_this ()
std::shared_ptr< T > shared_from_this ()

Public Functions inherited from std::MultipleInheritableEnableSharedFromThis

See std::MultipleInheritableEnableSharedFromThis

Type Name
virtual ~MultipleInheritableEnableSharedFromThis ()

Public Attributes Documentation

variable current_element

std::shared_ptr<State> sdm::AlphaStar::AlphaStarItem::current_element;

variable horizon_

int sdm::AlphaStar::AlphaStarItem::horizon_;

variable value_f_

double sdm::AlphaStar::AlphaStarItem::value_f_;

variable value_g_

double sdm::AlphaStar::AlphaStarItem::value_g_;

Public Functions Documentation

function AlphaStarItem

inline sdm::AlphaStar::AlphaStarItem::AlphaStarItem (
    const std::shared_ptr< State > & element,
    double value_g,
    double value_f,
    int horizon
) 

function operator<

inline bool sdm::AlphaStar::AlphaStarItem::operator< (
    std::shared_ptr< AlphaStarItem > const & b
) 

function str

inline virtual std::string sdm::AlphaStar::AlphaStarItem::str () const

Returns:

std::string the description of the item

Implements sdm::State::str


The documentation for this class was generated from the following file src/sdm/algorithms/alpha_star.hpp