![]() |
aGrUM 3.1.1
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 Types | |
| enum class | factory_state : char { NONE , NETWORK , VARIABLE , PARENTS , RAW_CPT , FACT_CPT , FACT_ENTRY } |
| The enumeration of states in which the factory can be in. More... | |
Public Member Functions | |
| IBayesNetFactory () | |
| virtual | ~IBayesNetFactory ()=default |
verbosity control | |
| void | setVerbose () |
| void | resetVerbose () |
| bool | isVerbose () |
| virtual const DiscreteVariable & | varInBN (NodeId id)=0 |
| Please. | |
| virtual factory_state | state () const =0 |
| Please. | |
| virtual NodeId | variableId (std::string_view name) const =0 |
| Please. | |
| virtual Size | cptDomainSize (NodeId n) const =0 |
| Please. | |
| virtual void | startNetworkDeclaration ()=0 |
| Please. | |
| virtual void | addNetworkProperty (std::string_view propName, std::string_view propValue)=0 |
| Please. | |
| virtual void | endNetworkDeclaration ()=0 |
| Please. | |
| virtual void | startVariableDeclaration ()=0 |
| Please. | |
| virtual void | variableName (std::string_view name)=0 |
| Please. | |
| virtual void | variableDescription (std::string_view desc)=0 |
| Please. | |
| virtual void | variableType (const VarType &type)=0 |
| Please. | |
| virtual void | addModality (std::string_view name)=0 |
| Please. | |
| virtual void | addMin (const long &min)=0 |
| Please. | |
| virtual void | addMax (const long &max)=0 |
| Please. | |
| virtual void | setVariableCPTImplementation (MultiDimAdressable *impl)=0 |
| Please. | |
| virtual NodeId | endVariableDeclaration ()=0 |
| Please. | |
| virtual void | startParentsDeclaration (std::string_view var)=0 |
| Please. | |
| virtual void | addParent (std::string_view var)=0 |
| Please. | |
| virtual void | endParentsDeclaration ()=0 |
| Please. | |
| virtual void | startRawProbabilityDeclaration (std::string_view var)=0 |
| Please. | |
| virtual void | rawConditionalTable (const std::vector< std::string > &variables, const std::vector< float > &rawTable)=0 |
| Please. | |
| virtual void | rawConditionalTable (const std::vector< float > &rawTable)=0 |
| Please. | |
| virtual void | endRawProbabilityDeclaration ()=0 |
| Please. | |
| virtual void | startFactorizedProbabilityDeclaration (std::string_view var)=0 |
| Please. | |
| virtual void | startFactorizedEntry ()=0 |
| Please. | |
| virtual void | endFactorizedEntry ()=0 |
| Please. | |
| virtual void | setParentModality (std::string_view parent, std::string_view modality)=0 |
| Please. | |
| virtual void | setVariableValuesUnchecked (const std::vector< float > &values)=0 |
| Please. | |
| virtual void | setVariableValues (const std::vector< float > &values)=0 |
| Please. | |
| virtual void | endFactorizedProbabilityDeclaration ()=0 |
| Please. | |
| virtual void | setVariable (const DiscreteVariable &var)=0 |
| Please. | |
| virtual void | setVariableCPT (std::string_view varName, MultiDimAdressable *table, bool redefineParents)=0 |
| Please. | |
Private Attributes | |
| bool | _verbose_ |
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 70 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 81 of file IBayesNetFactory.h.
| INLINE gum::IBayesNetFactory::IBayesNetFactory | ( | ) |
|
virtualdefault |
|
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 bool gum::IBayesNetFactory::isVerbose | ( | ) |
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
|
pure virtual |
Please.
Implemented in gum::BayesNetFactory< GUM_SCALAR >.
| INLINE void gum::IBayesNetFactory::resetVerbose | ( | ) |
Definition at line 52 of file IBayesNetFactory_inl.h.
References _verbose_.
Referenced by gum::BayesNetFactory< GUM_SCALAR >::BayesNetFactory().
|
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 void gum::IBayesNetFactory::setVerbose | ( | ) |
|
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 151 of file IBayesNetFactory.h.
Referenced by IBayesNetFactory(), isVerbose(), resetVerbose(), and setVerbose().