1 |
/* |
/* |
2 |
IndexManager.java |
IndexManager.java |
3 |
* |
* |
4 |
* Copyright (c) 2002, Benja Fallenstein |
* Copyright (c) 2002, Benja Fallenstein and Tuomas J. Lukka |
5 |
* |
* |
6 |
* You may use and distribute under the terms of either the GNU Lesser |
* You may use and distribute under the terms of either the GNU Lesser |
7 |
* General Public License, either version 2 of the license or, |
* General Public License, either version 2 of the license or, |
24 |
package gzz.index; |
package gzz.index; |
25 |
import gzz.*; |
import gzz.*; |
26 |
|
|
27 |
|
/** A class from which different indices to spaces can be requested. |
28 |
|
*/ |
29 |
|
|
30 |
public class IndexManager { |
public class IndexManager { |
31 |
|
|
32 |
|
/** Get an index which returns, for a given enfilade, all cells of the space |
33 |
|
* which contain an overlapping xanalogical region. |
34 |
|
*/ |
35 |
public static Index getEnfiladeOverlap(Space s) { |
public static Index getEnfiladeOverlap(Space s) { |
36 |
return |
return |
37 |
((IndexedVStreamCellTexter)s.getCellTexter()).getEnfiladeOverlap(); |
((IndexedVStreamCellTexter)s.getCellTexter()).getEnfiladeOverlap(); |
38 |
} |
} |
39 |
|
|
40 |
|
/** Get the Xanadu model link indexer which is to be used with |
41 |
|
* the given space. |
42 |
|
* <b>Note: </b> This does NOT mean an indexer which is implemented BY the |
43 |
|
* space, this is an indexer implemented somewhere else FOR the space. |
44 |
|
*/ |
45 |
public static XuIndexer getXuIndexer(Space s) { |
public static XuIndexer getXuIndexer(Space s) { |
46 |
return |
return |
47 |
((IndexedVStreamCellTexter)s.getCellTexter()).getXuIndexer(); |
((IndexedVStreamCellTexter)s.getCellTexter()).getXuIndexer(); |