30 #ifndef GUM_GRAPHICALMODEL_H 31 #define GUM_GRAPHICALMODEL_H 76 const std::string&
property(
const std::string& name)
const;
83 const std::string& byDefault)
const;
88 void setProperty(
const std::string& name,
const std::string& value);
107 virtual bool empty()
const;
156 #ifndef GUM_NO_INLINE Virtual base class for probabilistic graphical models.
Instantiation completeInstantiation() const
Get an instantiation over all the variables of the model.
HashTable< std::string, std::string > * __propertiesMap
The properties of this Directed Graphical Model. Initialized using a lazy instantiation.
const std::string & propertyWithDefault(const std::string &name, const std::string &byDefault) const
Return the value of the property name of this GraphicalModel.
virtual const VariableNodeMap & variableNodeMap() const =0
Returns a constant reference to the VariableNodeMap of this Graphical Model.
virtual const NodeGraphPart & nodes() const =0
Returns a constant reference to the VariableNodeMap of this Graphical Model.
Container used to map discrete variables with nodes.
virtual Size size() const =0
Returns the number of variables in this Directed Graphical Model.
void setProperty(const std::string &name, const std::string &value)
Add or change a property of this GraphicalModel.
Copyright 2005-2020 Pierre-Henri WUILLEMIN () et Christophe GONZALES () info_at_agrum_dot_org.
Base class for discrete random variable.
virtual bool empty() const
Retursn true if this Directed Graphical Model is empty.
virtual const DiscreteVariable & variableFromName(const std::string &name) const =0
Getter by name.
Copyright 2005-2020 Pierre-Henri WUILLEMIN () et Christophe GONZALES () info_at_agrum_dot_org.
virtual ~GraphicalModel()
Destructor.
Copyright 2005-2020 Pierre-Henri WUILLEMIN () et Christophe GONZALES () info_at_agrum_dot_org.
double log10DomainSize() const
virtual NodeId nodeId(const DiscreteVariable &var) const =0
Return id node src discrete var pointer.
GraphicalModel & operator=(const GraphicalModel &source)
Private copy operator.
Copyright 2005-2020 Pierre-Henri WUILLEMIN () et Christophe GONZALES () info_at_agrum_dot_org.
Class for node sets in graph.
Class for assigning/browsing values to tuples of discrete variables.
virtual NodeId idFromName(const std::string &name) const =0
Getter by name.
GraphicalModel()
Default constructor.
std::size_t Size
In aGrUM, hashed values are unsigned long int.
virtual const DiscreteVariable & variable(NodeId id) const =0
Returns a constant reference over a variable given it's node id.
const std::string & property(const std::string &name) const
Return the value of the property name of this GraphicalModel.
HashTable< std::string, std::string > & __properties() const
Return the properties of this Directed Graphical Model and initialize the hash table is necessary...
Size NodeId
Type for node ids.
Copyright 2005-2020 Pierre-Henri WUILLEMIN () et Christophe GONZALES () info_at_agrum_dot_org.
Copyright 2005-2020 Pierre-Henri WUILLEMIN () et Christophe GONZALES () info_at_agrum_dot_org.