JTP API Documentation

jtp.classifier
Class Relation

java.lang.Object
  |
  +--jtp.classifier.Resource
        |
        +--jtp.classifier.Relation
All Implemented Interfaces:
Comparable

public class Relation
extends Resource


Nested Class Summary
 
Nested classes inherited from class jtp.classifier.Resource
Resource.ResourceComparator
 
Field Summary
protected  Collection _alChildren
           
protected  Collection _alParents
           
 boolean _bIsInverse
           
static Class _C_RELATION
          Static members
static Relation _INV_MOD
           
static Relation _MOD
          Constants
static Relation _MODIFIED_BY
           
static Relation _MODIFIES
           
 Relation _relInverse
          Member Variables
static Relation _SUBSUMED_BY
           
static Relation _SUBSUMES
           
 
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
 
Constructor Summary
Relation(Relation inv, Relation parent)
          Member Methods
 
Method Summary
 void addChild(Relation rel)
           
 void addParent(Relation rel)
           
static Relation CastToRelation(Resource r)
           
 Collection getChildren(boolean direct_only)
           
 Collection getParents(boolean direct_only)
           
 boolean hasParent(Relation rel)
           
static boolean IsRelation(Resource r)
           
 void printDef(PrintStream ps, boolean print_all)
           
 void printDef(PrintStream ps, boolean print_all, boolean infer_parents)
           
 
Methods inherited from class jtp.classifier.Resource
addMark, ClearMarks, compareTo, containsMark, equals, getAliases, GetAllResources, getID, getMark, hashCode, remapID, SetDefaultMark, setMark, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

_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
Constructor Detail

Relation

public Relation(Relation inv,
                Relation parent)
Member Methods

Method Detail

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)

JTP API Documentation