jtp.classifier
Class Relation
java.lang.Object
|
+--jtp.classifier.Resource
|
+--jtp.classifier.Relation
- All Implemented Interfaces:
- Comparable
- public class Relation
- extends Resource
Fields inherited from class jtp.classifier.Resource |
_ALL_BITS_ON, _BOTTOM, _CARD, _CARDQ, _GEN, _MA, _MAX_CARD, _MAX_CARDQ, _MAX_FP, _MAX_RESOURCE, _ME, _MI, _MIN_CARD, _MIN_CARDQ, _MIN_FP, _MIN_RESOURCE, _MR, _nCurrentMarkID, _nDefaultPattern, _nMarkID, _nMarkPattern, _NUM_MARKER_SETS, _TOP |
Methods inherited from class jtp.classifier.Resource |
addMark, ClearMarks, compareTo, containsMark, equals, getAliases, GetAllResources, getID, getMark, hashCode, remapID, SetDefaultMark, setMark, toString |
_MOD
public static Relation _MOD
- Constants
_INV_MOD
public static Relation _INV_MOD
_SUBSUMED_BY
public static Relation _SUBSUMED_BY
_SUBSUMES
public static Relation _SUBSUMES
_MODIFIES
public static Relation _MODIFIES
_MODIFIED_BY
public static Relation _MODIFIED_BY
_C_RELATION
public static Class _C_RELATION
- Static members
_relInverse
public Relation _relInverse
- Member Variables
_bIsInverse
public boolean _bIsInverse
_alParents
protected Collection _alParents
_alChildren
protected Collection _alChildren
Relation
public Relation(Relation inv,
Relation parent)
- Member Methods
addParent
public void addParent(Relation rel)
getParents
public Collection getParents(boolean direct_only)
addChild
public void addChild(Relation rel)
getChildren
public Collection getChildren(boolean direct_only)
hasParent
public boolean hasParent(Relation rel)
printDef
public void printDef(PrintStream ps,
boolean print_all)
- Overrides:
printDef
in class Resource
printDef
public void printDef(PrintStream ps,
boolean print_all,
boolean infer_parents)
CastToRelation
public static Relation CastToRelation(Resource r)
IsRelation
public static boolean IsRelation(Resource r)