Classes | |
class | DistributionValue |
class | ObjectType |
class | Path |
class | RelationType |
Public Member Functions | |
String | createImplication (Path path, int idx, boolean bConsequentIdx) |
ObjectType | getCoreObject () |
Vector< String > | getFormulas (boolean calculateWeights, boolean addReverseImplications) |
RPT2Logic (String attribute, String coreRelationName) | |
RPT2Logic (String attribute, String coreObjectName, String coreObjectVar) | |
void | setCoreItemVar (String var) |
ObjectType | setObjectType (String objName, String varName, String precondition, ObjectType[] referencedRelations) |
void | setPrecondition (String precond) |
void | setRelationType (String itemName, ObjectType from, ObjectType to) |
void | walkTree (RPNode root) |
Protected Member Functions | |
String | getAtom (Path path, String predicate, String item, String value) |
boolean | isBooleanValue (String value) |
void | walkTree (RPNode node, Path path) |
Protected Attributes | |
String | attribute |
String | coreItemName |
String | coreItemVar |
ObjectType | coreObject |
String | currentNodeObjectVar |
HashMap< String, ObjectType > | objects |
Vector< Path > | paths |
String | precondition = "" |
HashMap< String, RelationType > | relations |
double | totalSamplesInTree |
boolean | walkRecursive |
Definition at line 12 of file RPT2Logic.java.
edu::tum::cs::rpt::RPT2Logic::RPT2Logic | ( | String | attribute, | |
String | coreObjectName, | |||
String | coreObjectVar | |||
) | [inline] |
constructor to use if the core item is an object
attribute | ||
coreObjectName | ||
coreObjectVar |
Definition at line 36 of file RPT2Logic.java.
edu::tum::cs::rpt::RPT2Logic::RPT2Logic | ( | String | attribute, | |
String | coreRelationName | |||
) | [inline] |
constructor to use if the core item is a relation
attribute | ||
coreRelationName |
Definition at line 51 of file RPT2Logic.java.
String edu::tum::cs::rpt::RPT2Logic::createImplication | ( | Path | path, | |
int | idx, | |||
boolean | bConsequentIdx | |||
) | [inline] |
Definition at line 288 of file RPT2Logic.java.
String edu::tum::cs::rpt::RPT2Logic::getAtom | ( | Path | path, | |
String | predicate, | |||
String | item, | |||
String | value | |||
) | [inline, protected] |
Definition at line 135 of file RPT2Logic.java.
ObjectType edu::tum::cs::rpt::RPT2Logic::getCoreObject | ( | ) | [inline] |
Definition at line 60 of file RPT2Logic.java.
Vector<String> edu::tum::cs::rpt::RPT2Logic::getFormulas | ( | boolean | calculateWeights, | |
boolean | addReverseImplications | |||
) | [inline] |
Definition at line 341 of file RPT2Logic.java.
boolean edu::tum::cs::rpt::RPT2Logic::isBooleanValue | ( | String | value | ) | [inline, protected] |
Definition at line 98 of file RPT2Logic.java.
void edu::tum::cs::rpt::RPT2Logic::setCoreItemVar | ( | String | var | ) | [inline] |
Definition at line 64 of file RPT2Logic.java.
ObjectType edu::tum::cs::rpt::RPT2Logic::setObjectType | ( | String | objName, | |
String | varName, | |||
String | precondition, | |||
ObjectType[] | referencedRelations | |||
) | [inline] |
Definition at line 412 of file RPT2Logic.java.
void edu::tum::cs::rpt::RPT2Logic::setPrecondition | ( | String | precond | ) | [inline] |
Definition at line 436 of file RPT2Logic.java.
void edu::tum::cs::rpt::RPT2Logic::setRelationType | ( | String | itemName, | |
ObjectType | from, | |||
ObjectType | to | |||
) | [inline] |
tells the converter that the item with the given name (in the proximity subgraph), which may have attributes that are used in the classification using RPTs, is a link -- not an object -- and that it represents the given relation.
itemName | the name of the item | |
from | the object where the (directed) link originates | |
to | the object the link leads to |
Definition at line 432 of file RPT2Logic.java.
void edu::tum::cs::rpt::RPT2Logic::walkTree | ( | RPNode | node, | |
Path | path | |||
) | [inline, protected] |
Definition at line 175 of file RPT2Logic.java.
void edu::tum::cs::rpt::RPT2Logic::walkTree | ( | RPNode | root | ) | [inline] |
traverses the relational probability tree rooted at root and collects all the paths to leaf nodes (a path thus contains a number of atomic formulas which correspond to the tests in the various nodes)
root | root of the relational probability tree |
Definition at line 75 of file RPT2Logic.java.
String edu::tum::cs::rpt::RPT2Logic::attribute [protected] |
Definition at line 14 of file RPT2Logic.java.
String edu::tum::cs::rpt::RPT2Logic::coreItemName [protected] |
Definition at line 14 of file RPT2Logic.java.
String edu::tum::cs::rpt::RPT2Logic::coreItemVar [protected] |
Definition at line 14 of file RPT2Logic.java.
ObjectType edu::tum::cs::rpt::RPT2Logic::coreObject [protected] |
Definition at line 18 of file RPT2Logic.java.
String edu::tum::cs::rpt::RPT2Logic::currentNodeObjectVar [protected] |
used during walkTree to store the name of the variable that the current node deals with
Definition at line 28 of file RPT2Logic.java.
HashMap<String, ObjectType> edu::tum::cs::rpt::RPT2Logic::objects [protected] |
Definition at line 16 of file RPT2Logic.java.
Vector<Path> edu::tum::cs::rpt::RPT2Logic::paths [protected] |
Definition at line 15 of file RPT2Logic.java.
String edu::tum::cs::rpt::RPT2Logic::precondition = "" [protected] |
Definition at line 20 of file RPT2Logic.java.
HashMap<String, RelationType> edu::tum::cs::rpt::RPT2Logic::relations [protected] |
Definition at line 17 of file RPT2Logic.java.
double edu::tum::cs::rpt::RPT2Logic::totalSamplesInTree [protected] |
the total number of samples that was used to learn the RPT that is currently being processed
Definition at line 24 of file RPT2Logic.java.
boolean edu::tum::cs::rpt::RPT2Logic::walkRecursive [protected] |
Definition at line 19 of file RPT2Logic.java.