gzz.index.impl
Class TransientXuIndexer

java.lang.Object
  |
  +--gzz.index.impl.TransientXuIndexer
All Implemented Interfaces:
XuIndexer

public class TransientXuIndexer
extends java.lang.Object
implements XuIndexer

An index of xanadu links.


Constructor Summary
TransientXuIndexer()
           
 
Method Summary
 void add(XuLink link)
           
 Index getBackwardIndex()
           
 Index getForwardIndex()
          Get an Index which, for Enfilade1Ds, returns all XuLink objects where the given enfilade overlaps the from member.
 void remove(XuLink link)
          Remove a link.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransientXuIndexer

public TransientXuIndexer()
Method Detail

getForwardIndex

public Index getForwardIndex()
Description copied from interface: XuIndexer
Get an Index which, for Enfilade1Ds, returns all XuLink objects where the given enfilade overlaps the from member.

Specified by:
getForwardIndex in interface XuIndexer

getBackwardIndex

public Index getBackwardIndex()
Specified by:
getBackwardIndex in interface XuIndexer

add

public void add(XuLink link)
Specified by:
add in interface XuIndexer

remove

public void remove(XuLink link)
Description copied from interface: XuIndexer
Remove a link. Note that since we don't have equivalence classes between links yet, this must be a XuLink that's really inside this object, either inserted through add() or obtained through an index.

Specified by:
remove in interface XuIndexer