![]() |
aGrUM
0.16.0
|
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 | addModality (const std::string &name)=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 49 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 60 of file IBayesNetFactory.h.
|
inline |
Definition at line 70 of file IBayesNetFactory.h.
|
inlinevirtual |
Definition at line 72 of file IBayesNetFactory.h.
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
Referenced by isVerbose().
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
Referenced by isVerbose().
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
Referenced by isVerbose().
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
Referenced by isVerbose().
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
Referenced by isVerbose().
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
Referenced by isVerbose().
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
Referenced by isVerbose().
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
Referenced by isVerbose().
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
Referenced by isVerbose().
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
Referenced by isVerbose().
|
inline |
Definition at line 82 of file IBayesNetFactory.h.
References __verbose, addModality(), addNetworkProperty(), addParent(), cptDomainSize(), endFactorizedEntry(), endFactorizedProbabilityDeclaration(), endNetworkDeclaration(), endParentsDeclaration(), endRawProbabilityDeclaration(), endVariableDeclaration(), rawConditionalTable(), setParentModality(), setVariable(), setVariableCPT(), setVariableCPTImplementation(), setVariableValues(), setVariableValuesUnchecked(), startFactorizedEntry(), startFactorizedProbabilityDeclaration(), startNetworkDeclaration(), startParentsDeclaration(), startRawProbabilityDeclaration(), startVariableDeclaration(), state(), variableDescription(), variableId(), variableName(), and varInBN().
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
Referenced by isVerbose().
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
|
inline |
Definition at line 80 of file IBayesNetFactory.h.
References __verbose.
Referenced by gum::BayesNetFactory< GUM_SCALAR >::BayesNetFactory().
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
Referenced by isVerbose().
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
Referenced by isVerbose().
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
Referenced by isVerbose().
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
Referenced by isVerbose().
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
Referenced by isVerbose().
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
Referenced by isVerbose().
|
inline |
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
Referenced by isVerbose().
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
Referenced by isVerbose().
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
Referenced by isVerbose().
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
Referenced by isVerbose().
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
Referenced by isVerbose().
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
Referenced by isVerbose().
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
Referenced by isVerbose().
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
Referenced by isVerbose().
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
Referenced by isVerbose().
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
Referenced by isVerbose().
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
Referenced by isVerbose().
|
private |
Definition at line 129 of file IBayesNetFactory.h.
Referenced by isVerbose(), resetVerbose(), and setVerbose().