edu::tum::cs::logic::KnowledgeBase Class Reference

List of all members.

Public Member Functions

Vector< FormulagetFormulas ()
Integer getTemplateID (Formula f)
KnowledgeBase ground (Database db, WorldVariables worldVars, boolean simplify) throws Exception
Iterator< Formulaiterator ()
 KnowledgeBase (String filename) throws IOException, ParseException
 KnowledgeBase ()
int size ()

Protected Attributes

Vector< Formulaformulas
HashMap< Formula, Integer > templateIDs

Detailed Description

class that represents a logical knowledge base

Author:
jain

Definition at line 22 of file KnowledgeBase.java.


Constructor & Destructor Documentation

edu::tum::cs::logic::KnowledgeBase::KnowledgeBase (  )  [inline]

Definition at line 29 of file KnowledgeBase.java.

edu::tum::cs::logic::KnowledgeBase::KnowledgeBase ( String  filename  )  throws IOException, ParseException [inline]

constructor that reads a number of .-terminated formula statements from a file

Parameters:
filename 
Exceptions:
IOException 
ParseException 

Definition at line 40 of file KnowledgeBase.java.


Member Function Documentation

Vector<Formula> edu::tum::cs::logic::KnowledgeBase::getFormulas (  )  [inline]

Definition at line 65 of file KnowledgeBase.java.

Integer edu::tum::cs::logic::KnowledgeBase::getTemplateID ( Formula  f  )  [inline]

Definition at line 99 of file KnowledgeBase.java.

KnowledgeBase edu::tum::cs::logic::KnowledgeBase::ground ( Database  db,
WorldVariables  worldVars,
boolean  simplify 
) throws Exception [inline]

grounds this knowledge base (using a set of entities and the corresponding set of ground atoms)

Parameters:
db 
worldVars the set of ground atoms
simplify whether to use the evidence in the database to simplify ground formulas
Returns:
Exceptions:
Exception 

Definition at line 77 of file KnowledgeBase.java.

Iterator<Formula> edu::tum::cs::logic::KnowledgeBase::iterator (  )  [inline]

Definition at line 91 of file KnowledgeBase.java.

int edu::tum::cs::logic::KnowledgeBase::size (  )  [inline]

Definition at line 95 of file KnowledgeBase.java.


Member Data Documentation

Definition at line 23 of file KnowledgeBase.java.

stores for ground KBs the index of the original formula from which the formula was instantiated

Definition at line 27 of file KnowledgeBase.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:41 2013