edu::tum::cs::logic::GroundLiteral Class Reference

Inheritance diagram for edu::tum::cs::logic::GroundLiteral:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void getGroundAtoms (Set< GroundAtom > ret)
void getVariables (Database db, Map< String, String > ret)
Formula ground (Map< String, String > binding, WorldVariables vars, Database db) throws Exception
 GroundLiteral (boolean isPositive, GroundAtom gndAtom)
boolean isTrue (IPossibleWorld w)
void negate ()
Formula simplify (Database evidence)
Formula toCNF ()
Formula toNNF ()
String toString ()

Public Attributes

GroundAtom gndAtom
boolean isPositive

Detailed Description

Definition at line 8 of file GroundLiteral.java.


Constructor & Destructor Documentation

edu::tum::cs::logic::GroundLiteral::GroundLiteral ( boolean  isPositive,
GroundAtom  gndAtom 
) [inline]

Definition at line 12 of file GroundLiteral.java.


Member Function Documentation

void edu::tum::cs::logic::GroundLiteral::getGroundAtoms ( Set< GroundAtom ret  )  [inline, virtual]

gets the set of ground atoms appearing in this (grounded) formula

Parameters:
ret the set to write to

Implements edu::tum::cs::logic::Formula.

Definition at line 32 of file GroundLiteral.java.

void edu::tum::cs::logic::GroundLiteral::getVariables ( Database  db,
Map< String, String >  ret 
) [inline, virtual]

gets a mapping from names of meta-variables appearing in the formula to the types/domains they apply to

Parameters:
db 
ret mapping in which to store the result
Exceptions:
Exception 

Implements edu::tum::cs::logic::Formula.

Definition at line 23 of file GroundLiteral.java.

Formula edu::tum::cs::logic::GroundLiteral::ground ( Map< String, String >  binding,
WorldVariables  worldVars,
Database  db 
) throws Exception [inline, virtual]

grounds this formula for a particular binding of its variables

Parameters:
binding the variable binding
worldVars the set of ground atoms (which is needed to return the ground versions of atoms)
db a database containing a set of constants for each type that can be used to ground quantified formulas (can be null if the formula does not contain any quantified variables)
Returns:
Exceptions:
Exception 

Implements edu::tum::cs::logic::Formula.

Definition at line 27 of file GroundLiteral.java.

boolean edu::tum::cs::logic::GroundLiteral::isTrue ( IPossibleWorld  w  )  [inline, virtual]

Implements edu::tum::cs::logic::Formula.

Definition at line 17 of file GroundLiteral.java.

void edu::tum::cs::logic::GroundLiteral::negate (  )  [inline]

Definition at line 51 of file GroundLiteral.java.

Formula edu::tum::cs::logic::GroundLiteral::simplify ( Database  evidence  )  [inline, virtual]

this method checks whether an evidence is given for the current groundliteral

Parameters:
evidence evidence of current scenario
Returns:
returns an instance of TrueFalse by given evidence or this groundatom

Implements edu::tum::cs::logic::Formula.

Definition at line 61 of file GroundLiteral.java.

Formula edu::tum::cs::logic::GroundLiteral::toCNF (  )  [inline, virtual]

Implements edu::tum::cs::logic::Formula.

Definition at line 42 of file GroundLiteral.java.

Formula edu::tum::cs::logic::GroundLiteral::toNNF (  )  [inline, virtual]

Implements edu::tum::cs::logic::Formula.

Definition at line 47 of file GroundLiteral.java.

String edu::tum::cs::logic::GroundLiteral::toString (  )  [inline]

Definition at line 37 of file GroundLiteral.java.


Member Data Documentation

Definition at line 10 of file GroundLiteral.java.

Definition at line 9 of file GroundLiteral.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