Class sdm::SerialOccupancyState

Class List > sdm > SerialOccupancyState

  • #include <serial_occupancy_state.hpp>

Inherits the following classes: sdm::OccupancyState, sdm::SerialInterface

Public Types inherited from sdm::MappedVector

See sdm::MappedVector

Type Name
typedef typename std::unordered_map< TIndex, T, Hash, KeyEqual >::const_iterator const_iterator
typedef typename std::unordered_map< TIndex, T, Hash, KeyEqual >::iterator iterator
typedef typename RecursiveMap< TIndex, T >::type type
typedef typename RecursiveMap< TIndex, T >::value_list_type value_list_type
typedef typename RecursiveMap< TIndex, T >::value_type value_type

Public Static Attributes inherited from sdm::OccupancyState

See sdm::OccupancyState

Type Name
int NUM_CREATE
int NUM_DESTROY
unsigned long PASSAGE_FINALIZE
unsigned long PASSAGE_GET_PROBA
unsigned long PASSAGE_SET_PROBA
double PRECISION
double TIME_IN_ADD_PROBA
double TIME_IN_COMPRESS
double TIME_IN_DOT_OPERATOR
double TIME_IN_EQUAL_OPERATOR
double TIME_IN_FINALIZE
double TIME_IN_GET_PROBA
double TIME_IN_HASH
double TIME_IN_INFERIOR_OPERATOR
double TIME_IN_MINUS_OPERATOR
double TIME_IN_SET_PROBA
RecursiveMap< Joint< std::shared_ptr< HistoryInterface > >, std::shared_ptr< JointHistoryInterface > > jhistory_map_
Keep relation between list of individual histories and joint histories.

Public Static Attributes inherited from sdm::Belief

See sdm::Belief

Type Name
double PRECISION

Public Static Attributes inherited from sdm::MappedVector

See sdm::MappedVector

Type Name
double PRECISION

Public Functions

Type Name
SerialOccupancyState ()
SerialOccupancyState (number num_agents)
SerialOccupancyState (const SerialOccupancyState & copy)
SerialOccupancyState (const OccupancyState & copy)
virtual number getCurrentAgentId () const
Get the current Agent Id of the object.
virtual TypeState getTypeState () const
virtual std::string str () const
Get a string describing the current item.

Public Functions inherited from sdm::OccupancyState

See sdm::OccupancyState

Type Name
OccupancyState ()
OccupancyState (number num_agents)
OccupancyState (const OccupancyState & copy)
virtual void addProbability (const std::shared_ptr< State > & joint_history, double proba)
virtual void addProbability (const std::shared_ptr< JointHistoryInterface > & joint_history, const std::shared_ptr< BeliefInterface > & belief, double proba)
bool areIndividualHistoryLPE (const std::shared_ptr< HistoryInterface > &, const std::shared_ptr< HistoryInterface > &, number)
Check probabilistic equivalence.
virtual std::shared_ptr< OccupancyStateInterface > compress ()
Compression for occupancy states based on belief state representation. To be in this representation, the type 'TState' have to be a derivation of the interface BeliefState.
virtual void finalize ()
virtual std::shared_ptr< Space > getActionSpaceAt (number t)
virtual const std::vector< std::set< std::shared_ptr< HistoryInterface > > > & getAllIndividualHistories () const
Get the set of individual histories that are in the support of the occupancy state (for all agents).
virtual std::shared_ptr< BeliefInterface > getBeliefAt (const std::shared_ptr< JointHistoryInterface > & jhistory) const
Get the belief corresponding to the given joint historiy.
virtual const std::set< std::shared_ptr< BeliefInterface > > & getBeliefs () const
Get the set of states that are in the support of the occupancy state for a precise joint historiy.
virtual std::shared_ptr< JointHistoryInterface > getCompressedJointHistory (const std::shared_ptr< JointHistoryInterface > &) const
Get the Compressed Joint History.
std::shared_ptr< OccupancyStateInterface > getCompressedOccupancy ()
virtual std::shared_ptr< OccupancyStateInterface > getFullyUncompressedOccupancy ()
Get the fully uncompressed occupancy state.
virtual std::vector< std::shared_ptr< JointHistoryInterface > > getIndividualHierarchicalHistoriesOf (number t, number agent)
virtual std::shared_ptr< JointHistoryInterface > getIndividualHierarchicalHistory (number t, number agent, std::shared_ptr< JointHistoryInterface > candidate_ihhistory)
virtual const std::set< std::shared_ptr< HistoryInterface > > & getIndividualHistories (number ag_id) const
Get the set of individual histories that are in the support of the occupancy state (for a given agent).
virtual const std::set< std::shared_ptr< JointHistoryInterface > > & getJointHistories () const
Get the set of joint histories that are in the support of the occupancy state.
virtual std::shared_ptr< JointHistoryInterface > getJointHistory (std::shared_ptr< JointHistoryInterface > candidate_jhistory)
virtual std::vector< std::shared_ptr< JointHistoryInterface > > getJointHistoryVector (number t)
virtual Joint< std::shared_ptr< HistoryInterface > > getJointLabels (const Joint< std::shared_ptr< HistoryInterface >> &) const
Get the list of labels that corresponds to the list of ihistories.
virtual std::shared_ptr< HistoryInterface > getLabel (const std::shared_ptr< HistoryInterface > & ihistory, number agent_id) const
Get the label that corresponds to the ihistory.
virtual std::shared_ptr< OccupancyStateInterface > getOneStepUncompressedOccupancy ()
Get the one step uncompressed occupancy state.
const std::shared_ptr< PrivateOccupancyState > & getPrivateOccupancyState (const number & agent_id, const std::shared_ptr< HistoryInterface > & ihistory) const
Get the.
const Joint< RecursiveMap< std::shared_ptr< HistoryInterface >, std::shared_ptr< PrivateOccupancyState > > > & getPrivateOccupancyStates () const
Get the Private Occupancy States object.
virtual double getProbability (const std::shared_ptr< State > & joint_history) const
virtual double getProbability (const std::shared_ptr< JointHistoryInterface > & joint_history) const
virtual double getProbability (const std::shared_ptr< JointHistoryInterface > & joint_history, const std::shared_ptr< State > & state) const
virtual double getProbabilityOverIndividualHistories (number, const std::shared_ptr< HistoryInterface > &) const
Get the probability over individual histories and precise agent.
virtual TypeState getTypeState () const
std::shared_ptr< OccupancyState > getptr ()
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 individualHierarchicalHistoryVectorForIsDone (number t, number agent)
virtual double minus (const std::shared_ptr< BeliefInterface > & other) const
void normalize ()
virtual double operator- (const std::shared_ptr< BeliefInterface > & other) const
double operator< (const OccupancyState & other) const
virtual double operator< (const std::shared_ptr< BeliefInterface > & other) const
virtual bool operator== (const std::shared_ptr< State > & other) const
Check equality between two states. This function must be implemented in inherited classes.
bool operator== (const OccupancyState & other) const
virtual bool operator== (const std::shared_ptr< BeliefInterface > & other) const
virtual double operator^ (const std::shared_ptr< BeliefInterface > & other) const
virtual void prepareIndividualHierarchicalHistoryVectors (number t)
virtual void pushToIndividualHierarchicalHistoriesOf (number t, number agent, std::shared_ptr< JointHistoryInterface > & individual_hierarchical_history)
virtual void pushToJointHistoryVector (number t, std::shared_ptr< JointHistoryInterface > & individual_hierarchical_history)
virtual Pair< std::shared_ptr< JointHistoryInterface >, std::shared_ptr< BeliefInterface > > sampleJointHistoryBelief ()
virtual void setActionSpaceAt (number t, std::shared_ptr< Space > action_space)
void setBeliefAt (const std::shared_ptr< JointHistoryInterface > & jhistory, const std::shared_ptr< BeliefInterface > & belief)
Set the belief corresponding to the given joint historiy.
void setCompressedOccupancy (const std::shared_ptr< OccupancyStateInterface > & compress_ostate)
Set the compressed occupancy state.
virtual void setFullyUncompressedOccupancy (const std::shared_ptr< OccupancyStateInterface > &)
Set the fully uncompressed occupancy state.
virtual void setOneStepUncompressedOccupancy (const std::shared_ptr< OccupancyStateInterface > &)
Set the one step uncompressed occupancy state.
virtual void setProbability (const std::shared_ptr< State > & joint_history, double proba)
virtual void setProbability (const std::shared_ptr< JointHistoryInterface > & joint_history, const std::shared_ptr< BeliefInterface > & belief, double proba)
void setup ()
virtual std::string str () const
Get a string describing the current item.
virtual void updateJointLabels (const Joint< std::shared_ptr< HistoryInterface >> &, const Joint< std::shared_ptr< HistoryInterface >> &)
Update the labels of multiple individual histories.
void updateLabel (number, const std::shared_ptr< HistoryInterface > &, const std::shared_ptr< HistoryInterface > &)
Update the label of a specific individual history.
void updateTime (std::chrono::high_resolution_clock::time_point start_time, std::string information) const
~OccupancyState ()

Public Functions inherited from sdm::OccupancyStateInterface

See sdm::OccupancyStateInterface

Type Name
virtual void addProbability (const std::shared_ptr< State > & pair_history_belief, double proba) = 0
virtual void addProbability (const std::shared_ptr< JointHistoryInterface > & joint_history, const std::shared_ptr< BeliefInterface > & belief, double proba) = 0
virtual std::shared_ptr< OccupancyStateInterface > compress () = 0
Compression for occupancy states based on belief state representation. To be in this representation, the type 'TState' have to be a derivation of the interface BeliefState.
virtual void finalize () = 0
virtual std::shared_ptr< Space > getActionSpaceAt (number t) = 0
virtual const std::vector< std::set< std::shared_ptr< HistoryInterface > > > & getAllIndividualHistories () const = 0
Get the set of individual histories that are in the support of the occupancy state (for all agents).
virtual std::shared_ptr< BeliefInterface > getBeliefAt (const std::shared_ptr< JointHistoryInterface > & jhistory) const = 0
Get the set of beliefs at a given joint history.
virtual const std::set< std::shared_ptr< BeliefInterface > > & getBeliefs () const = 0
Get the set of states that are in the support of the occupancy state for a precise joint historiy.
virtual std::shared_ptr< JointHistoryInterface > getCompressedJointHistory (const std::shared_ptr< JointHistoryInterface > &) const = 0
Get the Compressed Joint History.
virtual std::shared_ptr< OccupancyStateInterface > getFullyUncompressedOccupancy () = 0
Get the fully uncompressed occupancy state.
virtual std::vector< std::shared_ptr< JointHistoryInterface > > getIndividualHierarchicalHistoriesOf (number t, number agent) = 0
virtual std::shared_ptr< JointHistoryInterface > getIndividualHierarchicalHistory (number t, number agent, std::shared_ptr< JointHistoryInterface > candidate_ihhistory) = 0
virtual const std::set< std::shared_ptr< HistoryInterface > > & getIndividualHistories (number ag_id) const = 0
Get the set of individual histories that are in the support of the occupancy state (for a given agent).
virtual const std::set< std::shared_ptr< JointHistoryInterface > > & getJointHistories () const = 0
Get the set of joint histories that are in the support of the occupancy state.
virtual std::shared_ptr< JointHistoryInterface > getJointHistory (std::shared_ptr< JointHistoryInterface > candidate_jhistory) = 0
virtual std::vector< std::shared_ptr< JointHistoryInterface > > getJointHistoryVector (number t) = 0
virtual Joint< std::shared_ptr< HistoryInterface > > getJointLabels (const Joint< std::shared_ptr< HistoryInterface >> &) const = 0
Get the list of labels that corresponds to the list of ihistories.
virtual std::shared_ptr< HistoryInterface > getLabel (const std::shared_ptr< HistoryInterface > & ihistory, number agent_id) const = 0
Get the label that corresponds to the ihistory.
virtual std::shared_ptr< OccupancyStateInterface > getOneStepUncompressedOccupancy () = 0
Get the one step uncompressed occupancy state.
virtual double getProbability (const std::shared_ptr< State > & joint_history) const = 0
virtual double getProbability (const std::shared_ptr< JointHistoryInterface > & joint_history) const = 0
virtual double getProbability (const std::shared_ptr< JointHistoryInterface > & joint_history, const std::shared_ptr< State > & state) const = 0
virtual double getProbabilityOverIndividualHistories (number, const std::shared_ptr< HistoryInterface > &) const = 0
Get the probability over individual histories and precise agent.
virtual bool individualHierarchicalHistoryVectorForIsDone (number t, number agent) = 0
virtual double minus (const std::shared_ptr< BeliefInterface > & other) const = 0
virtual double operator- (const std::shared_ptr< BeliefInterface > & other) const = 0
virtual void prepareIndividualHierarchicalHistoryVectors (number t) = 0
virtual void pushToIndividualHierarchicalHistoriesOf (number t, number agent, std::shared_ptr< JointHistoryInterface > & individual_hierarchical_history) = 0
virtual void pushToJointHistoryVector (number t, std::shared_ptr< JointHistoryInterface > & individual_hierarchical_history) = 0
virtual Pair< std::shared_ptr< JointHistoryInterface >, std::shared_ptr< BeliefInterface > > sampleJointHistoryBelief () = 0
virtual void setActionSpaceAt (number t, std::shared_ptr< Space > action_space) = 0
virtual void setFullyUncompressedOccupancy (const std::shared_ptr< OccupancyStateInterface > &) = 0
Set the fully uncompressed occupancy state.
virtual void setOneStepUncompressedOccupancy (const std::shared_ptr< OccupancyStateInterface > &) = 0
Set the one step uncompressed occupancy state.
virtual void setProbability (const std::shared_ptr< State > & pair_history_belief, double proba) = 0
virtual void setProbability (const std::shared_ptr< JointHistoryInterface > & joint_history, const std::shared_ptr< BeliefInterface > & belief, double proba) = 0
virtual void updateJointLabels (const Joint< std::shared_ptr< HistoryInterface >> &, const Joint< std::shared_ptr< HistoryInterface >> &) = 0
Update the labels of multiple individual histories.

Public Functions inherited from sdm::BeliefInterface

See 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 ()

Public Functions inherited from sdm::Belief

See sdm::Belief

Type Name
Belief ()
Belief (std::size_t)
Belief (const Belief &)
Belief (const MappedVector< std::shared_ptr< State >> &)
Belief (const std::vector< std::shared_ptr< State >> & list_states, const std::vector< double > & list_proba)
virtual void addProbability (const std::shared_ptr< State > & state, double proba)
virtual void finalize ()
virtual double getDefaultValue () const
virtual double getProbability (const std::shared_ptr< State > & state) const
virtual std::vector< std::shared_ptr< State > > getStates () const
virtual TypeState getTypeState () const
virtual std::shared_ptr< VectorInterface< std::shared_ptr< State >, double > > getVectorInferface ()
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 isStateExist (const std::shared_ptr< State > & state_tmp) const
virtual double norm_1 () const
virtual void normalizeBelief (double norm_1)
virtual double operator< (const std::shared_ptr< BeliefInterface > & other) const
double operator< (const Belief & other) const
bool operator== (const Belief &) const
virtual bool operator== (const std::shared_ptr< State > & other) const
Check equality between two states. This function must be implemented in inherited classes.
virtual bool operator== (const std::shared_ptr< BeliefInterface > & other) const
virtual double operator^ (const std::shared_ptr< BeliefInterface > & other) const
virtual std::shared_ptr< State > sampleState ()
void serialize (Archive & archive, const unsigned int)
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.
virtual ~Belief ()

Public Functions inherited from sdm::BeliefInterface

See 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 ()

Public Functions inherited from sdm::MappedVector

See sdm::MappedVector

Type Name
MappedVector ()
MappedVector (T default_value)
MappedVector (long size, T default_value)
MappedVector (const MappedVector &)
MappedVector (std::initializer_list< value_list_type >)
std::shared_ptr< TOutput > add (const std::shared_ptr< TOutput > & other, double coef_this=1., double coef_other=1.) const
virtual void addValueAt (const TIndex &, const T &)
virtual TIndex argmax ()
virtual TIndex argmin ()
virtual T at (const TIndex &) const
T dot (const MappedVector &) const
This method implements a non-commutative dot product : It is worth noticing that sometimes arg1.dot(arg2) != arg2.dot(arg1)
void finalize ()
T getDefault () const
virtual std::vector< TIndex > getIndexes () const
virtual T getValueAt (const TIndex &) const
bool isExist (const TIndex &) const
bool is_equal (const MappedVector & other, double precision) const
virtual T max ()
virtual T min ()
T norm_1 () const
T norm_2 () const
bool operator!= (const MappedVector &) const
T operator* (const MappedVector &) const
bool operator< (const MappedVector &) const
bool operator== (const MappedVector & other) const
T operator^ (const MappedVector &) const
This method implements a non-commutative dot product : It is worth noticing that sometimes arg1.dot(arg2) != arg2.dot(arg1)
void serialize (Archive & archive, const unsigned int)
void setDefault (double default_value)
virtual void setValueAt (const TIndex &, const T &)
void setupIndexes ()
virtual size_t size () const
virtual std::string str () const
virtual ~MappedVector ()

Public Functions inherited from sdm::VectorInterface

See sdm::VectorInterface

Type Name
virtual void addValueAt (const I & index, const T & value) = 0
virtual I argmax () = 0
virtual I argmin () = 0
virtual T at (const I & index) const = 0
virtual std::vector< I > getIndexes () const = 0
virtual T getValueAt (const I & index) const = 0
virtual T max () = 0
virtual T min () = 0
virtual void setValueAt (const I & index, const T & value) = 0
virtual size_t size () const = 0
virtual std::string str () const = 0

Public Functions inherited from sdm::SerialInterface

See sdm::SerialInterface

Type Name
virtual number getCurrentAgentId () const = 0
Get the current Agent Id of the object.

Public Static Functions inherited from sdm::OccupancyState

See sdm::OccupancyState

Type Name
void cleanTIME ()

Public Static Functions inherited from sdm::Belief

See sdm::Belief

Type Name
std::shared_ptr< State > getState (const std::shared_ptr< State > &)

Public Static Functions inherited from sdm::MappedVector

See sdm::MappedVector

Type Name
void setPrecision (double)

Protected Attributes inherited from sdm::OccupancyState

See sdm::OccupancyState

Type Name
std::shared_ptr< std::unordered_map< number, std::shared_ptr< Space > > > action_space_map
std::vector< std::set< std::shared_ptr< HistoryInterface > > > all_list_ihistories_
tuple of private history spaces, one private history space per agent
std::weak_ptr< OccupancyStateInterface > compressed_occupancy_state
std::shared_ptr< OccupancyStateInterface > fully_uncompressed_occupancy_state
Keep in memory the uncompressed occupancy states.
std::unordered_map< number, std::unordered_map< std::shared_ptr< HistoryInterface >, std::set< std::shared_ptr< JointHistoryInterface > > > > ihistories_to_jhistory_
std::vector< std::shared_ptr< std::unordered_map< number, std::vector< std::shared_ptr< JointHistoryInterface > > > > > individual_hierarchical_history_vector_map_vector
std::shared_ptr< std::unordered_map< number, std::vector< std::shared_ptr< JointHistoryInterface > > > > joint_history_map_vector
std::set< std::shared_ptr< BeliefInterface > > list_beliefs_
space of all reachable states, those in the support of the occupancy state : Should not be used since there are to much possible wrt each joint history, belief states whould have been a better choice.
std::set< std::shared_ptr< JointHistoryInterface > > list_joint_histories_
space of joint histories
std::unordered_map< std::shared_ptr< JointHistoryInterface >, std::shared_ptr< BeliefInterface > > map_joint_history_to_belief_
mapping from joint history to belief
number num_agents_ = = 2
the number of agents
std::shared_ptr< OccupancyStateInterface > one_step_left_compressed_occupancy_state
Joint< RecursiveMap< std::shared_ptr< HistoryInterface >, std::shared_ptr< HistoryInterface > > > private_ihistory_map_
Keep relations between all private ihistories and labels.
std::unordered_map< number, std::unordered_map< std::shared_ptr< HistoryInterface >, double > > probability_ihistories
probability of a private history space for a precise agent
Joint< RecursiveMap< std::shared_ptr< HistoryInterface >, std::shared_ptr< PrivateOccupancyState > > > tuple_of_maps_from_histories_to_private_occupancy_states_
This representation of occupancy states consists of private occupancy states for each agent.
Joint< RecursiveMap< std::shared_ptr< HistoryInterface >, double > > weight_of_private_occupancy_state_

Protected Attributes inherited from sdm::Belief

See sdm::Belief

Type Name
DiscreteDistribution< std::shared_ptr< State > > distribution_

Protected Attributes inherited from sdm::MappedVector

See sdm::MappedVector

Type Name
bool bmax = = false
bool bmin = = false
T default_value_ = = 0.0
std::pair< TIndex, T > pmax
std::pair< TIndex, T > pmin
long size_ = = -1
std::vector< TIndex > v_indexes = = {}

Protected Functions inherited from sdm::OccupancyState

See sdm::OccupancyState

Type Name
void setProbabilityOverIndividualHistories ()
void setupBeliefsAndHistories ()
void setupIndividualHistories ()
void setupPrivateOccupancyStates ()

Protected Functions inherited from sdm::MappedVector

See sdm::MappedVector

Type Name
const std::pair< TIndex, T > & getMax ()
const std::pair< TIndex, T > & getMin ()

Public Functions Documentation

function SerialOccupancyState [1/4]

sdm::SerialOccupancyState::SerialOccupancyState () 

function SerialOccupancyState [2/4]

sdm::SerialOccupancyState::SerialOccupancyState (
    number num_agents
) 

function SerialOccupancyState [3/4]

sdm::SerialOccupancyState::SerialOccupancyState (
    const SerialOccupancyState & copy
) 

function SerialOccupancyState [4/4]

sdm::SerialOccupancyState::SerialOccupancyState (
    const OccupancyState & copy
) 

function getCurrentAgentId

virtual number sdm::SerialOccupancyState::getCurrentAgentId () const

Returns:

number

Implements sdm::SerialInterface::getCurrentAgentId

function getTypeState

virtual TypeState sdm::SerialOccupancyState::getTypeState () const

Implements sdm::OccupancyState::getTypeState

function str

virtual std::string sdm::SerialOccupancyState::str () const

Returns:

std::string the description of the item

Implements sdm::OccupancyState::str


The documentation for this class was generated from the following file src/sdm/core/state/serial_occupancy_state.hpp