![]() |
aGrUM
0.20.3
a C++ library for (probabilistic) graphical models
|
IBayesNetFactory is the non-template interface for BayesNetFactory : many ways to build a BN do not depend on the specification of the GUM_SCALAR template argument (for instance for BN readers). More...
#include <agrum/BN/IBayesNetFactory.h>
Public Member Functions | |
IBayesNetFactory () | |
virtual | ~IBayesNetFactory () |
verbosity control | |
void | setVerbose () |
void | resetVerbose () |
bool | isVerbose () |
virtual const DiscreteVariable & | varInBN (NodeId id)=0 |
Please. More... | |
virtual factory_state | state () const =0 |
Please. More... | |
virtual NodeId | variableId (const std::string &name) const =0 |
Please. More... | |
virtual Size | cptDomainSize (NodeId n) const =0 |
Please. More... | |
virtual void | startNetworkDeclaration ()=0 |
Please. More... | |
virtual void | addNetworkProperty (const std::string &propName, const std::string &propValue)=0 |
Please. More... | |
virtual void | endNetworkDeclaration ()=0 |
Please. More... | |
virtual void | startVariableDeclaration ()=0 |
Please. More... | |
virtual void | variableName (const std::string &name)=0 |
Please. More... | |
virtual void | variableDescription (const std::string &desc)=0 |
Please. More... | |
virtual void | variableType (const VarType &type)=0 |
Please. More... | |
virtual void | addModality (const std::string &name)=0 |
Please. More... | |
virtual void | addMin (const long &min)=0 |
Please. More... | |
virtual void | addMax (const long &max)=0 |
Please. More... | |
virtual void | setVariableCPTImplementation (MultiDimAdressable *impl)=0 |
Please. More... | |
virtual NodeId | endVariableDeclaration ()=0 |
Please. More... | |
virtual void | startParentsDeclaration (const std::string &var)=0 |
Please. More... | |
virtual void | addParent (const std::string &var)=0 |
Please. More... | |
virtual void | endParentsDeclaration ()=0 |
Please. More... | |
virtual void | startRawProbabilityDeclaration (const std::string &var)=0 |
Please. More... | |
virtual void | rawConditionalTable (const std::vector< std::string > &variables, const std::vector< float > &rawTable)=0 |
Please. More... | |
virtual void | rawConditionalTable (const std::vector< float > &rawTable)=0 |
Please. More... | |
virtual void | endRawProbabilityDeclaration ()=0 |
Please. More... | |
virtual void | startFactorizedProbabilityDeclaration (const std::string &var)=0 |
Please. More... | |
virtual void | startFactorizedEntry ()=0 |
Please. More... | |
virtual void | endFactorizedEntry ()=0 |
Please. More... | |
virtual void | setParentModality (const std::string &parent, const std::string &modality)=0 |
Please. More... | |
virtual void | setVariableValuesUnchecked (const std::vector< float > &values)=0 |
Please. More... | |
virtual void | setVariableValues (const std::vector< float > &values)=0 |
Please. More... | |
virtual void | endFactorizedProbabilityDeclaration ()=0 |
Please. More... | |
virtual void | setVariable (const DiscreteVariable &var)=0 |
Please. More... | |
virtual void | setVariableCPT (const std::string &varName, MultiDimAdressable *table, bool redefineParents)=0 |
Please. More... | |
Public Types | |
enum | factory_state : char { factory_state::NONE, factory_state::NETWORK, factory_state::VARIABLE, factory_state::PARENTS, factory_state::RAW_CPT, factory_state::FACT_CPT, factory_state::FACT_ENTRY } |
The enumeration of states in which the factory can be in. More... | |
IBayesNetFactory is the non-template interface for BayesNetFactory : many ways to build a BN do not depend on the specification of the GUM_SCALAR template argument (for instance for BN readers).
Definition at line 48 of file IBayesNetFactory.h.
|
strong |
The enumeration of states in which the factory can be in.
Every documentation section's name indicates from which state you can call it's methods, and in which state it places the factory.
There is an exception for the delegated CPT definition methods which do not change the state of the factory.
Enumerator | |
---|---|
NONE | |
NETWORK | |
VARIABLE | |
PARENTS | |
RAW_CPT | |
FACT_CPT | |
FACT_ENTRY |
Definition at line 59 of file IBayesNetFactory.h.
|
inline |
|
inlinevirtual |
Definition at line 72 of file IBayesNetFactory.h.
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
|
inline |
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
|
inline |
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
|
inline |
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
|
private |
Definition at line 130 of file IBayesNetFactory.h.
Referenced by IBayesNetFactory(), isVerbose(), resetVerbose(), and setVerbose().