Class sdm::BeliefInterface
Class List > sdm > BeliefInterface
A common interface for objects that represent a belief.
#include <belief_interface.hpp>
Inherits the following classes: sdm::State
Inherited by the following classes: sdm::Belief, sdm::BeliefDefault, sdm::OccupancyStateInterface
Public Functions
Type | Name |
---|---|
virtual void | addProbability (const std::shared_ptr< State > &, double proba) = 0 |
virtual void | finalize () = 0 |
virtual double | getDefaultValue () const = 0 |
virtual double | getProbability (const std::shared_ptr< State > & state) const = 0 |
virtual std::vector< std::shared_ptr< State > > | getStates () const = 0 |
virtual TypeState | getTypeState () const |
virtual std::shared_ptr< VectorInterface< std::shared_ptr< State >, double > > | getVectorInferface () = 0 |
virtual bool | isStateExist (const std::shared_ptr< State > & state_tmp) const = 0 |
virtual double | norm_1 () const = 0 |
virtual void | normalizeBelief (double norm_1) = 0 |
virtual double | operator< (const std::shared_ptr< BeliefInterface > & other) const = 0 |
virtual bool | operator== (const std::shared_ptr< BeliefInterface > & other) const = 0 |
virtual double | operator^ (const std::shared_ptr< BeliefInterface > & other) const = 0 |
virtual std::shared_ptr< State > | sampleState () = 0 |
virtual void | setDefaultValue (double) = 0 |
virtual void | setProbability (const std::shared_ptr< State > & state, double proba) = 0 |
virtual size_t | size () const = 0 |
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 Functions Documentation
function addProbability
virtual void sdm::BeliefInterface::addProbability (
const std::shared_ptr< State > &,
double proba
) = 0
function finalize
virtual void sdm::BeliefInterface::finalize () = 0
function getDefaultValue
virtual double sdm::BeliefInterface::getDefaultValue () const = 0
function getProbability
virtual double sdm::BeliefInterface::getProbability (
const std::shared_ptr< State > & state
) const = 0
function getStates
virtual std::vector< std::shared_ptr< State > > sdm::BeliefInterface::getStates () const = 0
function getTypeState
inline virtual TypeState sdm::BeliefInterface::getTypeState () const
Implements sdm::State::getTypeState
function getVectorInferface
virtual std::shared_ptr< VectorInterface < std::shared_ptr< State >, double > > sdm::BeliefInterface::getVectorInferface () = 0
function isStateExist
virtual bool sdm::BeliefInterface::isStateExist (
const std::shared_ptr< State > & state_tmp
) const = 0
function norm_1
virtual double sdm::BeliefInterface::norm_1 () const = 0
function normalizeBelief
virtual void sdm::BeliefInterface::normalizeBelief (
double norm_1
) = 0
function operator<
virtual double sdm::BeliefInterface::operator< (
const std::shared_ptr< BeliefInterface > & other
) const = 0
function operator==
virtual bool sdm::BeliefInterface::operator== (
const std::shared_ptr< BeliefInterface > & other
) const = 0
function operator^
virtual double sdm::BeliefInterface::operator^ (
const std::shared_ptr< BeliefInterface > & other
) const = 0
function sampleState
virtual std::shared_ptr< State > sdm::BeliefInterface::sampleState () = 0
function setDefaultValue
virtual void sdm::BeliefInterface::setDefaultValue (
double
) = 0
function setProbability
virtual void sdm::BeliefInterface::setProbability (
const std::shared_ptr< State > & state,
double proba
) = 0
function size
virtual size_t sdm::BeliefInterface::size () const = 0
The documentation for this class was generated from the following file src/sdm/core/state/interface/belief_interface.hpp