Public Member Functions | |
void | beginSession () throws Exception |
void | beginSession (Map< String, Object > params) throws Exception |
String | getConstantType (String constant) |
abstract Vector< String[]> | getDomains () |
String | getName () |
ParameterHandler | getParameterHandler () |
abstract Vector< String[]> | getPredicates () |
java.util.Vector< InferenceResult > | infer (Iterable< String > queries) throws Exception |
abstract void | instantiate () throws Exception |
String | mapConstantFromProbCog (String c) |
String | mapConstantToProbCog (String c) |
Model (String name) throws Exception | |
void | setConstantMap (HashMap< String, String > constantMap) |
void | setDefaultParameter (String key, Object value) |
void | setDefaultParameters (Map< String, Object > params) |
void | setEvidence (Iterable< String[]> evidence) throws Exception |
Public Attributes | |
HashMap< String, String > | constantMapFromProbCog |
HashMap< String, String > | constantMapToProbCog |
Protected Member Functions | |
abstract String | _getConstantType (String constant) |
abstract java.util.Vector < InferenceResult > | _infer (Iterable< String > queries) throws Exception |
abstract void | _setEvidence (Iterable< String[]> evidence) throws Exception |
Static Protected Member Functions | |
static Vector< String[]> | getPredicatesFromSignatures (Collection< Signature > sigs) |
Protected Attributes | |
HashMap< String, Object > | actualParams |
Map< String, Object > | defaultParameters |
boolean | haveSession = false |
String | name |
ParameterHandler | paramHandler |
Definition at line 13 of file Model.java.
edu::tum::cs::probcog::Model::Model | ( | String | name | ) | throws Exception [inline] |
Definition at line 34 of file Model.java.
abstract String edu::tum::cs::probcog::Model::_getConstantType | ( | String | constant | ) | [protected, pure virtual] |
Implemented in edu::tum::cs::probcog::BLNModel, and edu::tum::cs::probcog::MLNModel.
abstract java.util.Vector<InferenceResult> edu::tum::cs::probcog::Model::_infer | ( | Iterable< String > | queries | ) | throws Exception [protected, pure virtual] |
runs the actual inference method, without mapping constants
queries |
Exception |
Implemented in edu::tum::cs::probcog::BLNModel, and edu::tum::cs::probcog::MLNModel.
abstract void edu::tum::cs::probcog::Model::_setEvidence | ( | Iterable< String[]> | evidence | ) | throws Exception [protected, pure virtual] |
Implemented in edu::tum::cs::probcog::BLNModel, and edu::tum::cs::probcog::MLNModel.
void edu::tum::cs::probcog::Model::beginSession | ( | ) | throws Exception [inline] |
Definition at line 81 of file Model.java.
void edu::tum::cs::probcog::Model::beginSession | ( | Map< String, Object > | params | ) | throws Exception [inline] |
Reimplemented in edu::tum::cs::probcog::BLNModel, and edu::tum::cs::probcog::MLNModel.
Definition at line 74 of file Model.java.
String edu::tum::cs::probcog::Model::getConstantType | ( | String | constant | ) | [inline] |
gets the type of a given constant
constant |
Definition at line 181 of file Model.java.
abstract Vector<String[]> edu::tum::cs::probcog::Model::getDomains | ( | ) | [pure virtual] |
Implemented in edu::tum::cs::probcog::BLNModel, and edu::tum::cs::probcog::MLNModel.
String edu::tum::cs::probcog::Model::getName | ( | ) | [inline] |
Definition at line 190 of file Model.java.
ParameterHandler edu::tum::cs::probcog::Model::getParameterHandler | ( | ) | [inline] |
Implements edu::tum::cs::inference::IParameterHandler.
Definition at line 194 of file Model.java.
abstract Vector<String[]> edu::tum::cs::probcog::Model::getPredicates | ( | ) | [pure virtual] |
Implemented in edu::tum::cs::probcog::BLNModel, and edu::tum::cs::probcog::MLNModel.
static Vector<String[]> edu::tum::cs::probcog::Model::getPredicatesFromSignatures | ( | Collection< Signature > | sigs | ) | [inline, static, protected] |
Definition at line 55 of file Model.java.
java.util.Vector<InferenceResult> edu::tum::cs::probcog::Model::infer | ( | Iterable< String > | queries | ) | throws Exception [inline] |
Definition at line 106 of file Model.java.
abstract void edu::tum::cs::probcog::Model::instantiate | ( | ) | throws Exception [pure virtual] |
Implemented in edu::tum::cs::probcog::BLNModel, and edu::tum::cs::probcog::MLNModel.
String edu::tum::cs::probcog::Model::mapConstantFromProbCog | ( | String | c | ) | [inline] |
maps a ProbCog constant to an external constant
c |
Definition at line 149 of file Model.java.
String edu::tum::cs::probcog::Model::mapConstantToProbCog | ( | String | c | ) | [inline] |
maps an external constant to a ProbCog constant
c |
Definition at line 165 of file Model.java.
void edu::tum::cs::probcog::Model::setConstantMap | ( | HashMap< String, String > | constantMap | ) | [inline] |
sets the mapping from ProbCog constants to external constants
constantMap |
Definition at line 136 of file Model.java.
void edu::tum::cs::probcog::Model::setDefaultParameter | ( | String | key, | |
Object | value | |||
) | [inline] |
sets a default parameter for this model
key | ||
value |
Definition at line 124 of file Model.java.
void edu::tum::cs::probcog::Model::setDefaultParameters | ( | Map< String, Object > | params | ) | [inline] |
Definition at line 128 of file Model.java.
void edu::tum::cs::probcog::Model::setEvidence | ( | Iterable< String[]> | evidence | ) | throws Exception [inline] |
Definition at line 85 of file Model.java.
HashMap<String, Object> edu::tum::cs::probcog::Model::actualParams [protected] |
Definition at line 31 of file Model.java.
HashMap<String,String> edu::tum::cs::probcog::Model::constantMapFromProbCog |
maps from ProbCog constants to external constants
Definition at line 21 of file Model.java.
HashMap<String,String> edu::tum::cs::probcog::Model::constantMapToProbCog |
maps from external constants to ProbCog constants
Definition at line 25 of file Model.java.
Map<String,Object> edu::tum::cs::probcog::Model::defaultParameters [protected] |
default parameters to be used with this model
Definition at line 17 of file Model.java.
boolean edu::tum::cs::probcog::Model::haveSession = false [protected] |
Definition at line 32 of file Model.java.
String edu::tum::cs::probcog::Model::name [protected] |
name of the model
Definition at line 29 of file Model.java.
Definition at line 30 of file Model.java.