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 |
Definition at line 8 of file GroundLiteral.java.
edu::tum::cs::logic::GroundLiteral::GroundLiteral | ( | boolean | isPositive, | |
GroundAtom | gndAtom | |||
) | [inline] |
Definition at line 12 of file GroundLiteral.java.
void edu::tum::cs::logic::GroundLiteral::getGroundAtoms | ( | Set< GroundAtom > | ret | ) | [inline, virtual] |
gets the set of ground atoms appearing in this (grounded) formula
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
db | ||
ret | mapping in which to store the result |
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
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) |
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.
this method checks whether an evidence is given for the current groundliteral
evidence | evidence of current scenario |
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.
Definition at line 10 of file GroundLiteral.java.
Definition at line 9 of file GroundLiteral.java.