org.hypergraphdb.atom
Class HGSubsumes

java.lang.Object
  extended by org.hypergraphdb.HGPlainLink
      extended by org.hypergraphdb.atom.HGSubsumes
All Implemented Interfaces:
java.lang.Iterable<HGHandle>, HGLink

public class HGSubsumes
extends HGPlainLink

The HGSubsumes link represents a subsumes relationship between two atoms, either declared, or inferred by HyperGraph. Generally, such a relationship will exist between type atoms (i.e. instance of HGAtomType). One can explicitely create such a link, for instance to declare a subtyping relationship between types. HyperGraph is also allowed to create such links as part of query processing or other activities.

Author:
Borislav Iordanov

Constructor Summary
HGSubsumes(HGHandle[] link)
           
HGSubsumes(HGHandle general, HGHandle specific)
           
 
Method Summary
 HGHandle getGeneral()
           
 HGHandle getSpecific()
           
 java.lang.String toString()
           
 
Methods inherited from class org.hypergraphdb.HGPlainLink
getArity, getTargetAt, iterator, notifyTargetHandleUpdate, notifyTargetRemoved
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HGSubsumes

public HGSubsumes(HGHandle[] link)

HGSubsumes

public HGSubsumes(HGHandle general,
                  HGHandle specific)
Method Detail

getGeneral

public HGHandle getGeneral()

getSpecific

public HGHandle getSpecific()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object