Class sdm::SerializedState
Class List > sdm > SerializedState
#include <serialized_state.hpp>
Inherits the following classes: sdm::BaseState, sdm::BaseSerialInterface
Public Functions
| Type | Name |
|---|---|
| SerializedState () | |
| SerializedState (std::shared_ptr< State > state, Joint< std::shared_ptr< Action >> actions) | |
| SerializedState (const SerializedState & v) | |
| virtual Joint< std::shared_ptr< Action > > | getAction () const Get the hidden vector of action that were already decided p. |
| virtual number | getCurrentAgentId () const Get the current Agent Id of the object. |
| virtual std::shared_ptr< State > | getHiddenState () const Get the Hidden State of the serial object. |
| virtual void | setAgentId (number) Set the Agent Id of the object. |
| virtual std::string | str () const Get a string describing the current item. |
| virtual | ~SerializedState () |
Public Functions inherited from sdm::BaseState
See sdm::BaseState
| Type | Name |
|---|---|
| BaseState () | |
| BaseState (const TState & item) | |
| virtual TState | getState () const Get the data corresponding to the stored state. |
| virtual TypeState | getTypeState () const |
| virtual bool | operator== (const BaseState & other) const |
| virtual void | setState (const TState & state) Set the data corresponding to the stored state. |
| virtual std::string | str () const Get a string describing the current item. |
| virtual | ~BaseState () |
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 inherited from sdm::BaseSerialInterface
| Type | Name |
|---|---|
| virtual Joint< std::shared_ptr< Action > > | getAction () const = 0 Get the hidden vector of action that were already decided p. |
| virtual std::shared_ptr< State > | getHiddenState () const = 0 Get the Hidden State of the serial object. |
| virtual void | setAgentId (number) = 0 Set the Agent Id of the object. |
Public Functions inherited from sdm::SerialInterface
| Type | Name |
|---|---|
| virtual number | getCurrentAgentId () const = 0 Get the current Agent Id of the object. |
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 |
|---|---|
| number | agentID_ |
Protected Attributes inherited from sdm::BaseState
See sdm::BaseState
| Type | Name |
|---|---|
| TState | state_ |
Public Functions Documentation
function SerializedState [1/3]
sdm::SerializedState::SerializedState ()
function SerializedState [2/3]
sdm::SerializedState::SerializedState (
std::shared_ptr< State > state,
Joint < std::shared_ptr< Action >> actions
)
function SerializedState [3/3]
sdm::SerializedState::SerializedState (
const SerializedState & v
)
function getAction
virtual Joint < std::shared_ptr< Action > > sdm::SerializedState::getAction () const
Returns:
std::vector<std::shared_ptr<Action>>
Implements sdm::BaseSerialInterface::getAction
function getCurrentAgentId
virtual number sdm::SerializedState::getCurrentAgentId () const
Returns:
number
Implements sdm::SerialInterface::getCurrentAgentId
function getHiddenState
virtual std::shared_ptr< State > sdm::SerializedState::getHiddenState () const
Returns:
std::shared_ptr<State>
Implements sdm::BaseSerialInterface::getHiddenState
function setAgentId
virtual void sdm::SerializedState::setAgentId (
number
)
Implements sdm::BaseSerialInterface::setAgentId
function str
virtual std::string sdm::SerializedState::str () const
Returns:
std::string the description of the item
Implements sdm::BaseState::str
function ~SerializedState
virtual sdm::SerializedState::~SerializedState ()
Protected Attributes Documentation
variable agentID_
number sdm::SerializedState::agentID_;
The documentation for this class was generated from the following file src/sdm/core/state/serialized_state.hpp