/* IndexManager.java * * Copyright (c) 2002, Benja Fallenstein and Tuomas J. Lukka * * This file is part of Gzz. * * Gzz is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * Gzz 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 GNU Lesser General * Public License for more details. * * You should have received a copy of the GNU Lesser General * Public License along with Gzz; if not, write to the Free * Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, * MA 02111-1307 USA * * */ /* * Written by Benja Fallenstein */ package org.fenfire.index; import org.fenfire.*; /** A class from which different indices to spaces can be requested. */ public class IndexManager { /** Get an index which returns, for a given enfilade, all cells of the space * which contain an overlapping xanalogical region. */ public static Index getEnfiladeOverlap(Space s) { return ((IndexedVStreamNodeTexter)s.getNodeTexter()).getEnfiladeOverlap(); } /** Get the Xanadu model link indexer which is to be used with * the given space. * Note: This does NOT mean an indexer which is implemented BY the * space, this is an indexer implemented somewhere else FOR the space. */ public static XuIndexer getXuIndexer(Space s) { return ((IndexedVStreamNodeTexter)s.getNodeTexter()).getXuIndexer(); } }