MultiAgentDecisionProcess
|
TypeCluster is a class that represents a cluster of Types. More...
#include <TypeCluster.h>
Public Types | |
typedef std::set< Type * > ::const_iterator | type_ci |
typedef std::set< Type * > ::iterator | type_i |
Public Member Functions | |
void | AddType (Type *t) |
Add type t to this cluster. More... | |
type_ci | begin () const |
type_i | begin () |
void | clear () |
type_ci | end () const |
type_i | end () |
Index | GetIndex () const |
void | Merge (TypeCluster *tc) |
TypeCluster & | operator= (const TypeCluster &o) |
Copy assignment operator. More... | |
void | SetIndex (Index i) |
std::string | SoftPrint () const |
TypeCluster (Index i) | |
(default) Constructor More... | |
TypeCluster (const TypeCluster &a) | |
Copy constructor. More... | |
~TypeCluster () | |
Destructor. More... | |
Private Attributes | |
Index | _m_i |
The index of this TypeCluster within the TypeClusterList of the relevant agent. More... | |
std::set< Type * > | _m_types |
the set of tuples that form this cluster type. More... | |
TypeCluster is a class that represents a cluster of Types.
This is in particular used in a BayesianGameWithClusterInfo.
typedef std::set< Type* >::const_iterator TypeCluster::type_ci |
typedef std::set< Type* >::iterator TypeCluster::type_i |
TypeCluster::TypeCluster | ( | Index | i | ) |
(default) Constructor
TypeCluster::TypeCluster | ( | const TypeCluster & | a | ) |
Copy constructor.
check that this calles the derived class copy constructor!
References _m_types, and Type::Clone().
TypeCluster::~TypeCluster | ( | ) |
Destructor.
References _m_types.
|
inline |
Add type t to this cluster.
Referenced by BayesianGameWithClusterInfo::BayesianGameWithClusterInfo(), and BayesianGameWithClusterInfo::Extend().
|
inline |
Referenced by BayesianGameWithClusterInfo::BayesianGameWithClusterInfo(), BayesianGameWithClusterInfo::Extend(), BayesianGameWithClusterInfo::FindTypeClusterIndex(), Merge(), JointPolicyPureVectorForClusteredBG::StartRecursiveConstructionPerAgent(), and JointPolicyPureVectorForClusteredBG::StartRecursiveSoftPrintPerAgent().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
References _m_i.
Referenced by BayesianGameWithClusterInfo::Cluster(), and BayesianGameWithClusterInfo::Extend().
|
inline |
References begin(), and end().
Referenced by BayesianGameWithClusterInfo::ConstructClusteredIndividualTypes().
TypeCluster & TypeCluster::operator= | ( | const TypeCluster & | o | ) |
Copy assignment operator.
check that this calles the derived class copy constructor!
References _m_i, _m_types, and Type::Clone().
|
inline |
Referenced by BayesianGameWithClusterInfo::Cluster().
string TypeCluster::SoftPrint | ( | void | ) | const |
References _m_i, and _m_types.
Referenced by Type_PointerTuple::SoftPrint().
|
private |
The index of this TypeCluster within the TypeClusterList of the relevant agent.
Referenced by GetIndex(), operator=(), and SoftPrint().
|
private |
the set of tuples that form this cluster type.
Referenced by operator=(), SoftPrint(), TypeCluster(), and ~TypeCluster().