edu::tum::cs::probcog::Model Class Reference

Inheritance diagram for edu::tum::cs::probcog::Model:
Inheritance graph
[legend]

List of all members.

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< InferenceResultinfer (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

Detailed Description

Definition at line 13 of file Model.java.


Constructor & Destructor Documentation

edu::tum::cs::probcog::Model::Model ( String  name  )  throws Exception [inline]

Definition at line 34 of file Model.java.


Member Function Documentation

abstract String edu::tum::cs::probcog::Model::_getConstantType ( String  constant  )  [protected, pure virtual]
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

Parameters:
queries 
Returns:
Exceptions:
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]
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

Parameters:
constant 
Returns:
the type name of the constant or null if the constant is unknown (or mapped to nothing in ProbCog)

Definition at line 181 of file Model.java.

abstract Vector<String[]> edu::tum::cs::probcog::Model::getDomains (  )  [pure virtual]
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]
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]
String edu::tum::cs::probcog::Model::mapConstantFromProbCog ( String  c  )  [inline]

maps a ProbCog constant to an external constant

Parameters:
c 
Returns:

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

Parameters:
c 
Returns:

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

Parameters:
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

Parameters:
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.


Member Data Documentation

HashMap<String, Object> edu::tum::cs::probcog::Model::actualParams [protected]

Definition at line 31 of file Model.java.

maps from ProbCog constants to external constants

Definition at line 21 of file Model.java.

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.

name of the model

Definition at line 29 of file Model.java.

Definition at line 30 of file Model.java.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations


srldb
Author(s): Dominik Jain, Stefan Waldherr, Moritz Tenorth
autogenerated on Fri Jan 11 09:58:42 2013