edu::tum::cs::srl::bayesnets::BLOGModel Class Reference
List of all members.
Public Member Functions |
| BLOGModel (String xmlbifFile) throws Exception |
| BLOGModel (String blogFile, String networkFile) throws Exception |
| BLOGModel (String[] blogFiles, String networkFile) throws Exception |
BeliefNetworkEx | getGroundBN () throws Exception |
void | write (PrintStream out) throws Exception |
Protected Member Functions |
void | getCPD (Vector< String > lists, CPF cpf, Discrete[] domains, int[] addr, int i) |
Vector< String[]> | groundParams (Signature sig) throws Exception |
void | groundParams (String[] domNames, String[] setting, int idx, Vector< String[]> ret) throws Exception |
String | readBlogContent (String[] files) throws FileNotFoundException, IOException |
boolean | readDeclaration (String line) throws Exception |
void | writeDeclarations (PrintStream out) |
Detailed Description
Definition at line 23 of file BLOGModel.java.
Constructor & Destructor Documentation
edu::tum::cs::srl::bayesnets::BLOGModel::BLOGModel |
( |
String[] |
blogFiles, |
|
|
String |
networkFile | |
|
) |
| | throws Exception [inline] |
constructs a BLOG model by obtaining the node data from a fragment network and declarations from one or more BLOG files.
- Parameters:
-
| blogFiles | |
| networkFile | a Bayesian network file |
- Exceptions:
-
Definition at line 34 of file BLOGModel.java.
edu::tum::cs::srl::bayesnets::BLOGModel::BLOGModel |
( |
String |
blogFile, |
|
|
String |
networkFile | |
|
) |
| | throws Exception [inline] |
constructs a BLOG model by obtaining the node data from a Bayesian network template and function signatures from a BLOG file.
- Parameters:
-
- Exceptions:
-
Definition at line 124 of file BLOGModel.java.
edu::tum::cs::srl::bayesnets::BLOGModel::BLOGModel |
( |
String |
xmlbifFile |
) |
throws Exception [inline] |
constructs a BLOG model from a Bayesian network template. The function signatures are derived from node/parameter names.
- Parameters:
-
- Exceptions:
-
Definition at line 135 of file BLOGModel.java.
Member Function Documentation
void edu::tum::cs::srl::bayesnets::BLOGModel::getCPD |
( |
Vector< String > |
lists, |
|
|
CPF |
cpf, |
|
|
Discrete[] |
domains, |
|
|
int[] |
addr, |
|
|
int |
i | |
|
) |
| | [inline, protected] |
BeliefNetworkEx edu::tum::cs::srl::bayesnets::BLOGModel::getGroundBN |
( |
|
) |
throws Exception [inline] |
generates the ground Bayesian network for the template network that this model represents, instantiating it with the guaranteed domain elements
- Returns:
- Exceptions:
-
Definition at line 147 of file BLOGModel.java.
Vector<String[]> edu::tum::cs::srl::bayesnets::BLOGModel::groundParams |
( |
Signature |
sig |
) |
throws Exception [inline, protected] |
void edu::tum::cs::srl::bayesnets::BLOGModel::groundParams |
( |
String[] |
domNames, |
|
|
String[] |
setting, |
|
|
int |
idx, |
|
|
Vector< String[]> |
ret | |
|
) |
| | throws Exception [inline, protected] |
gets a list of lists of constants representing all possible combinations of elements of the given domains (domNames)
- Parameters:
-
| domNames | a list of domain names |
| setting | the current setting (initially empty) - same length as domNames |
| idx | the index of the domain from which to choose next |
| ret | the vector in which all settings shall be stored |
- Exceptions:
-
Definition at line 218 of file BLOGModel.java.
String edu::tum::cs::srl::bayesnets::BLOGModel::readBlogContent |
( |
String[] |
files |
) |
throws FileNotFoundException, IOException [inline, protected] |
read the contents of one or more (BLOG) files into a single string
- Parameters:
-
- Returns:
- Exceptions:
-
| FileNotFoundException | |
| IOException | |
Definition at line 105 of file BLOGModel.java.
boolean edu::tum::cs::srl::bayesnets::BLOGModel::readDeclaration |
( |
String |
line |
) |
throws Exception [inline, protected] |
void edu::tum::cs::srl::bayesnets::BLOGModel::write |
( |
PrintStream |
out |
) |
throws Exception [inline] |
void edu::tum::cs::srl::bayesnets::BLOGModel::writeDeclarations |
( |
PrintStream |
out |
) |
[inline, protected] |
The documentation for this class was generated from the following file: