![]() |
aGrUM 2.3.2
a C++ library for (probabilistic) graphical models
|
Read an influence diagram from an XML file with BIF format. More...
#include <BIFXMLIDReader.h>
Public Member Functions | |
| BIFXMLIDReader (InfluenceDiagram< GUM_SCALAR > *infdiag, const std::string &filePath) | |
| Constructor A reader is created to reading a defined file. | |
| ~BIFXMLIDReader () | |
| Default destructor. | |
| virtual void | proceed () |
| Reads the influence diagram from the file referenced by filePath given at the creation of class. | |
Public Attributes | |
| gum::Signaler2< int, std::string > | onProceed |
| Signaler used to indicates how many percent of the Xml files have been parsed yet. | |
Private Member Functions | |
| void | _parsingVariables_ (ticpp::Element *parentNetwork) |
| Parsing xml element containing data on variables. | |
| void | _fillingDiagram_ (ticpp::Element *parentNetwork) |
| fill the diagram | |
Private Attributes | |
| InfluenceDiagram< GUM_SCALAR > * | _infdiag_ |
| An handle to the influence diagram in which will be load the content of the xml filePath. | |
| std::string | _filePath_ |
| the path to the xml filePath | |
Read an influence diagram from an XML file with BIF format.
This class import an influence diagram from an XML files using BIF format See http://www-2.cs.cmu.edu/afs/cs/user/fgcozman/www/Research/InterchangeFormat/ for information about this format.
Definition at line 121 of file BIFXMLIDReader.h.
| gum::BIFXMLIDReader< GUM_SCALAR >::BIFXMLIDReader | ( | InfluenceDiagram< GUM_SCALAR > * | infdiag, |
| const std::string & | filePath ) |
Constructor A reader is created to reading a defined file.
Note that an ID as to be created before and given in parameter.
| gum::BIFXMLIDReader< GUM_SCALAR >::~BIFXMLIDReader | ( | ) |
Default destructor.
|
private |
fill the diagram
|
private |
Parsing xml element containing data on variables.
|
virtual |
Reads the influence diagram from the file referenced by filePath given at the creation of class.
Implements gum::IDReader< GUM_SCALAR >.
|
private |
the path to the xml filePath
Definition at line 171 of file BIFXMLIDReader.h.
|
private |
An handle to the influence diagram in which will be load the content of the xml filePath.
Definition at line 166 of file BIFXMLIDReader.h.
| gum::Signaler2< int, std::string > gum::BIFXMLIDReader< GUM_SCALAR >::onProceed |
Signaler used to indicates how many percent of the Xml files have been parsed yet.
Definition at line 148 of file BIFXMLIDReader.h.