/* XuIndexer.java * * Copyright (c) 2002, Tuomas J. Lukka * * You may use and distribute under the terms of either the GNU Lesser * General Public License, either version 2 of the license or, * at your choice, any later version. Alternatively, you may use and * distribute under the terms of the XPL. * * See the LICENSE.lgpl and LICENSE.xpl files for the specific terms of * the licenses. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the README * file for more details. * */ /* * Written by Tuomas J. Lukka */ package gzz.index.impl; import gzz.index.*; import gzz.media.*; /** An index of xanadu links. */ public interface XuIndexer { /** Get an Index which, for Enfilade1Ds, * returns all XuLink objects where * the given enfilade overlaps the from * member. */ Index getForwardIndex(); Index getBackwardIndex(); void add(XuLink link); /** 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. */ public void remove(XuLink link); }