edu::tum::cs::srl::mln::MarkovRandomField Class Reference

List of all members.

Public Member Functions

Database getDb ()
double getWorldValue (IPossibleWorld w)
WorldVariables getWorldVariables ()
Iterator< WeightedFormulaiterator ()
 MarkovRandomField (MarkovLogicNetwork mln, Database db) throws Exception
 MarkovRandomField (MarkovLogicNetwork mln, Database db, boolean storeFormulas, GroundingCallback gc) throws Exception
void print (PrintStream out)

Public Attributes

MarkovLogicNetwork mln

Protected Member Functions

void groundFormulas (boolean makelist, GroundingCallback gc) throws Exception
void groundVariables (Signature sig, String[] args, int i, Integer functionallyDeterminedArg) throws Exception
void groundVariables () throws Exception

Protected Attributes

Database db
final boolean simplifyGroundedFormulas = true
WorldVariables vars
Vector< WeightedFormulaweightedFormulas

Detailed Description

Class that represents a grounded instance of a MLN-file

Author:
wernickr, jain

Definition at line 25 of file MarkovRandomField.java.


Constructor & Destructor Documentation

edu::tum::cs::srl::mln::MarkovRandomField::MarkovRandomField ( MarkovLogicNetwork  mln,
Database  db,
boolean  storeFormulas,
GroundingCallback  gc 
) throws Exception [inline]
Parameters:
mln a Markov logic network
db an evidence database containing the set of objects for which to ground the MLN
storeFormula whether to store the grounded formulas that are generated
gc an optional callback (which is called for each grounded formula), may be null
Exceptions:
Exception 
Exception 

Definition at line 43 of file MarkovRandomField.java.

edu::tum::cs::srl::mln::MarkovRandomField::MarkovRandomField ( MarkovLogicNetwork  mln,
Database  db 
) throws Exception [inline]

Definition at line 51 of file MarkovRandomField.java.


Member Function Documentation

Database edu::tum::cs::srl::mln::MarkovRandomField::getDb (  )  [inline]

returns the database with which this MRF was grounded

Returns:

Definition at line 147 of file MarkovRandomField.java.

double edu::tum::cs::srl::mln::MarkovRandomField::getWorldValue ( IPossibleWorld  w  )  [inline]

gets the sum of weights of formulas satisfied in the given possible world

Returns:

Definition at line 164 of file MarkovRandomField.java.

WorldVariables edu::tum::cs::srl::mln::MarkovRandomField::getWorldVariables (  )  [inline]

Method that returns worldVariables of the given MLN

Returns:

Definition at line 59 of file MarkovRandomField.java.

void edu::tum::cs::srl::mln::MarkovRandomField::groundFormulas ( boolean  makelist,
GroundingCallback  gc 
) throws Exception [inline, protected]

creates groundings for all formulas

Parameters:
makelist boolean (if true the grounded formula will be saved in a set)
gc callback method (if not null, the callback method is called for each grounded formula)
Exceptions:
Exception 

Definition at line 126 of file MarkovRandomField.java.

void edu::tum::cs::srl::mln::MarkovRandomField::groundVariables ( Signature  sig,
String[]  args,
int  i,
Integer  functionallyDeterminedArg 
) throws Exception [inline, protected]

Definition at line 73 of file MarkovRandomField.java.

void edu::tum::cs::srl::mln::MarkovRandomField::groundVariables (  )  throws Exception [inline, protected]

creates the set ground atoms, considering functional predicates (and extending evidence as needed)

Exceptions:
Exception 

Definition at line 67 of file MarkovRandomField.java.

Iterator<WeightedFormula> edu::tum::cs::srl::mln::MarkovRandomField::iterator (  )  [inline]

Definition at line 151 of file MarkovRandomField.java.

void edu::tum::cs::srl::mln::MarkovRandomField::print ( PrintStream  out  )  [inline]

Definition at line 155 of file MarkovRandomField.java.


Member Data Documentation

Definition at line 26 of file MarkovRandomField.java.

Definition at line 27 of file MarkovRandomField.java.

whether to simplify grounded formulas based on evidence

Definition at line 33 of file MarkovRandomField.java.

Definition at line 29 of file MarkovRandomField.java.

Definition at line 28 of file MarkovRandomField.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:45 2013