Class sdm::PrivateOccupancyState
Class List > sdm > PrivateOccupancyState
A private occupancy state is an occupancy state (i.e. ).
#include <private_occupancy_state.hpp>
Inherits the following classes: sdm::OccupancyState
Public Types inherited from 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
Type | Name |
---|---|
double | PRECISION_COMPRESSION |
Public Static Attributes inherited from 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
Type | Name |
---|---|
double | PRECISION |
Public Functions
Type | Name |
---|---|
PrivateOccupancyState () | |
PrivateOccupancyState (number num_agents) | |
PrivateOccupancyState (number agent_id, number num_agents) | |
PrivateOccupancyState (const PrivateOccupancyState &) | |
PrivateOccupancyState (const OccupancyState &) | |
bool | check_equivalence (const PrivateOccupancyState &) const Check the equivalence between two private occupancy states. |
virtual void | finalize () |
void | finalize (bool do_compression) |
number | getAgentId () const Get the id of the agent that related to this occupancy state. |
std::shared_ptr< JointHistoryInterface > | getJointHistoryFromPartial (const std::vector< std::shared_ptr< HistoryInterface >> &) const Get the full joint history $$ corresponding to the partial joint history . |
const std::vector< std::shared_ptr< HistoryInterface > > & | getPartialJointHistory (const std::shared_ptr< JointHistoryInterface > &) const Get the partial joint history corresponding to the joint history $$. |
virtual std::string | str () const Get a string describing the current item. |
Public Functions inherited from 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
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
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
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
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 Static Functions inherited from 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
Type | Name |
---|---|
void | setPrecision (double) |
Protected Types
Type | Name |
---|---|
typedef boost::bimaps::bimap< std::shared_ptr< JointHistoryInterface >, Joint< std::shared_ptr< HistoryInterface > > > | bimap_type |
typedef bimap_type::value_type | bimap_value |
Protected Attributes
Type | Name |
---|---|
number | agent_id_ The agent's identifier. |
bimap_type | bimap_jhist_partial_jhist Bimap that map joint histories and hash of o^{-i}. |
Protected Attributes inherited from 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
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
Type | Name |
---|---|
std::vector< std::shared_ptr< HistoryInterface > > | getPartialJointHistory (const std::vector< std::shared_ptr< HistoryInterface >> &) const Get the partial joint history corresponding to the joint history $$. |
Protected Functions inherited from sdm::OccupancyState
Type | Name |
---|---|
void | setProbabilityOverIndividualHistories () |
void | setupBeliefsAndHistories () |
void | setupIndividualHistories () |
void | setupPrivateOccupancyStates () |
Protected Functions inherited from sdm::MappedVector
Type | Name |
---|---|
const std::pair< TIndex, T > & | getMax () |
const std::pair< TIndex, T > & | getMin () |
Public Static Attributes Documentation
variable PRECISION_COMPRESSION
double sdm::PrivateOccupancyState::PRECISION_COMPRESSION;
Public Functions Documentation
function PrivateOccupancyState [1/5]
sdm::PrivateOccupancyState::PrivateOccupancyState ()
function PrivateOccupancyState [2/5]
sdm::PrivateOccupancyState::PrivateOccupancyState (
number num_agents
)
function PrivateOccupancyState [3/5]
sdm::PrivateOccupancyState::PrivateOccupancyState (
number agent_id,
number num_agents
)
function PrivateOccupancyState [4/5]
sdm::PrivateOccupancyState::PrivateOccupancyState (
const PrivateOccupancyState &
)
function PrivateOccupancyState [5/5]
sdm::PrivateOccupancyState::PrivateOccupancyState (
const OccupancyState &
)
function check_equivalence
bool sdm::PrivateOccupancyState::check_equivalence (
const PrivateOccupancyState &
) const
Returns:
true if private occupancy states are equivalent (given precision PRECISION_COMPRESSION ).
Returns:
false if private occupancy states are not equivalent
function finalize [1/2]
virtual void sdm::PrivateOccupancyState::finalize ()
Implements sdm::OccupancyState::finalize
function finalize [2/2]
void sdm::PrivateOccupancyState::finalize (
bool do_compression
)
function getAgentId
number sdm::PrivateOccupancyState::getAgentId () const
Returns:
number the agent id
function getJointHistoryFromPartial
std::shared_ptr< JointHistoryInterface > sdm::PrivateOccupancyState::getJointHistoryFromPartial (
const std::vector< std::shared_ptr< HistoryInterface >> &
) const
Returns:
the joint history
function getPartialJointHistory [1/2]
const std::vector< std::shared_ptr< HistoryInterface > > & sdm::PrivateOccupancyState::getPartialJointHistory (
const std::shared_ptr< JointHistoryInterface > &
) const
Returns:
the corresponding partial history
function str
virtual std::string sdm::PrivateOccupancyState::str () const
Returns:
std::string the description of the item
Implements sdm::OccupancyState::str
Protected Types Documentation
typedef bimap_type
typedef boost::bimaps::bimap<std::shared_ptr<JointHistoryInterface>, Joint<std::shared_ptr<HistoryInterface> > > sdm::PrivateOccupancyState::bimap_type;
typedef bimap_value
typedef bimap_type::value_type sdm::PrivateOccupancyState::bimap_value;
Protected Attributes Documentation
variable agent_id_
number sdm::PrivateOccupancyState::agent_id_;
variable bimap_jhist_partial_jhist
bimap_type sdm::PrivateOccupancyState::bimap_jhist_partial_jhist;
Protected Functions Documentation
function getPartialJointHistory [2/2]
std::vector< std::shared_ptr< HistoryInterface > > sdm::PrivateOccupancyState::getPartialJointHistory (
const std::vector< std::shared_ptr< HistoryInterface >> &
) const
Returns:
the corresponding partial history
The documentation for this class was generated from the following file src/sdm/core/state/private_occupancy_state.hpp