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 |
boolean | isTrue () |
boolean | isTrue (IPossibleWorld w) |
TrueFalse | opposite () |
Formula | simplify (Database evidence) |
Formula | toCNF () |
Formula | toNNF () |
String | toString () |
Static Public Member Functions | |
static TrueFalse | getInstance (boolean isTrue) |
Static Public Attributes | |
static TrueFalse | FALSE = new TrueFalse(false) |
static TrueFalse | TRUE = new TrueFalse(true) |
Protected Attributes | |
boolean | isTrue |
Private Member Functions | |
TrueFalse (boolean isTrue) |
Definition at line 8 of file TrueFalse.java.
edu::tum::cs::logic::TrueFalse::TrueFalse | ( | boolean | isTrue | ) | [inline, private] |
Definition at line 19 of file TrueFalse.java.
void edu::tum::cs::logic::TrueFalse::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 33 of file TrueFalse.java.
static TrueFalse edu::tum::cs::logic::TrueFalse::getInstance | ( | boolean | isTrue | ) | [inline, static] |
Definition at line 13 of file TrueFalse.java.
void edu::tum::cs::logic::TrueFalse::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 24 of file TrueFalse.java.
Formula edu::tum::cs::logic::TrueFalse::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 28 of file TrueFalse.java.
boolean edu::tum::cs::logic::TrueFalse::isTrue | ( | ) | [inline] |
Definition at line 41 of file TrueFalse.java.
boolean edu::tum::cs::logic::TrueFalse::isTrue | ( | IPossibleWorld | w | ) | [inline, virtual] |
Implements edu::tum::cs::logic::Formula.
Definition at line 37 of file TrueFalse.java.
TrueFalse edu::tum::cs::logic::TrueFalse::opposite | ( | ) | [inline] |
Definition at line 65 of file TrueFalse.java.
simplifies the formula by removing parts of the formula that can be evaluated
evidence | an evidence database with which to evaluate ground atoms (may be null; if null, will only simplify based on TrueFalse instances appearing within the formula) |
Implements edu::tum::cs::logic::Formula.
Definition at line 61 of file TrueFalse.java.
Formula edu::tum::cs::logic::TrueFalse::toCNF | ( | ) | [inline, virtual] |
Implements edu::tum::cs::logic::Formula.
Definition at line 51 of file TrueFalse.java.
Formula edu::tum::cs::logic::TrueFalse::toNNF | ( | ) | [inline, virtual] |
Implements edu::tum::cs::logic::Formula.
Definition at line 56 of file TrueFalse.java.
String edu::tum::cs::logic::TrueFalse::toString | ( | ) | [inline] |
Definition at line 46 of file TrueFalse.java.
TrueFalse edu::tum::cs::logic::TrueFalse::FALSE = new TrueFalse(false) [static] |
Definition at line 10 of file TrueFalse.java.
boolean edu::tum::cs::logic::TrueFalse::isTrue [protected] |
Definition at line 17 of file TrueFalse.java.
TrueFalse edu::tum::cs::logic::TrueFalse::TRUE = new TrueFalse(true) [static] |
Definition at line 11 of file TrueFalse.java.