|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectproper.imp.Data
proper.imp.Predicate
public class Predicate
This class is container for data read from the parser. It can store hierarchichal data, too. Used for storing Prolog ground clauses. It can only handle strings without quotes, and only predicates with the same amount of arguments.
Constructor Summary | |
---|---|
Predicate(java.lang.String name,
int id)
initializes the object |
Method Summary | |
---|---|
boolean |
getClassLabelAdded()
returns whether the class label was added manually |
java.lang.String |
getName()
returns the name of the container |
Predicate |
getParentPredicate()
returns (if available) the predicate that is the parent of this element (sometimes an element can be part of a list and therefore the list is the parent and not a predicate!) |
static void |
main(java.lang.String[] args)
for testing only |
void |
setClassLabelAdded(boolean classLabelAdded)
sets whether the class label was added manually or not |
java.lang.String |
toString()
returns the data in a string |
Methods inherited from class proper.imp.Data |
---|
add, add, clone, get, getData, getID, getIndex, getParent, getParentIndex, hasParent, isNull, isNull, remove, setID, setParent, size |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Predicate(java.lang.String name, int id)
Method Detail |
---|
public java.lang.String getName()
getName
in class Data
public void setClassLabelAdded(boolean classLabelAdded)
public boolean getClassLabelAdded()
public Predicate getParentPredicate()
public java.lang.String toString()
toString
in class Data
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |