Class sdm::BeliefDefault
Class List > sdm > BeliefDefault
#include <belief_default.hpp>
Inherits the following classes: sdm::BeliefInterface
Public Functions
Type | Name |
---|---|
BeliefDefault () | |
BeliefDefault (double) Default Belief . | |
virtual void | addProbability (const std::shared_ptr< State > &, double proba) |
virtual double | getDefaultValue () const |
virtual double | getProbability (const std::shared_ptr< State > & state) const |
virtual std::vector< std::shared_ptr< State > > | getStates () const |
virtual std::shared_ptr< VectorInterface< std::shared_ptr< State >, double > > | getVectorInferface () |
virtual bool | isStateExist (const std::shared_ptr< State > & state_tmp) const |
virtual double | norm_1 () const |
virtual bool | operator== (const std::shared_ptr< BeliefInterface > & other) const |
virtual double | operator^ (const std::shared_ptr< BeliefInterface > & other) const |
virtual void | setDefaultValue (double) |
virtual void | setProbability (const std::shared_ptr< State > & state, double proba) |
virtual size_t | size () const |
virtual std::string | str () const Get a string describing the current item. |
Public Functions inherited from sdm::BeliefInterface
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 () |
Protected Attributes
Type | Name |
---|---|
double | default_value_ |
std::shared_ptr< MappedVector< std::shared_ptr< State >, double > > | map_nul |
Public Functions Documentation
function BeliefDefault [1/2]
sdm::BeliefDefault::BeliefDefault ()
function BeliefDefault [2/2]
sdm::BeliefDefault::BeliefDefault (
double
)
Parameters:
double
: default value
function addProbability
virtual void sdm::BeliefDefault::addProbability (
const std::shared_ptr< State > &,
double proba
)
Implements sdm::BeliefInterface::addProbability
function getDefaultValue
virtual double sdm::BeliefDefault::getDefaultValue () const
Implements sdm::BeliefInterface::getDefaultValue
function getProbability
virtual double sdm::BeliefDefault::getProbability (
const std::shared_ptr< State > & state
) const
Implements sdm::BeliefInterface::getProbability
function getStates
virtual std::vector< std::shared_ptr< State > > sdm::BeliefDefault::getStates () const
Implements sdm::BeliefInterface::getStates
function getVectorInferface
virtual std::shared_ptr< VectorInterface < std::shared_ptr< State >, double > > sdm::BeliefDefault::getVectorInferface ()
Implements sdm::BeliefInterface::getVectorInferface
function isStateExist
virtual bool sdm::BeliefDefault::isStateExist (
const std::shared_ptr< State > & state_tmp
) const
Implements sdm::BeliefInterface::isStateExist
function norm_1
virtual double sdm::BeliefDefault::norm_1 () const
Implements sdm::BeliefInterface::norm_1
function operator==
virtual bool sdm::BeliefDefault::operator== (
const std::shared_ptr< BeliefInterface > & other
) const
Implements sdm::BeliefInterface::operator==
function operator^
virtual double sdm::BeliefDefault::operator^ (
const std::shared_ptr< BeliefInterface > & other
) const
Implements sdm::BeliefInterface::operator^
function setDefaultValue
virtual void sdm::BeliefDefault::setDefaultValue (
double
)
Implements sdm::BeliefInterface::setDefaultValue
function setProbability
virtual void sdm::BeliefDefault::setProbability (
const std::shared_ptr< State > & state,
double proba
)
Implements sdm::BeliefInterface::setProbability
function size
virtual size_t sdm::BeliefDefault::size () const
Implements sdm::BeliefInterface::size
function str
virtual std::string sdm::BeliefDefault::str () const
Returns:
std::string the description of the item
Implements sdm::State::str
Protected Attributes Documentation
variable default_value_
double sdm::BeliefDefault::default_value_;
variable map_nul
std::shared_ptr<MappedVector<std::shared_ptr<State>,double> > sdm::BeliefDefault::map_nul;
The documentation for this class was generated from the following file src/sdm/core/state/belief_default.hpp