geoComplex
Class StandardGeoComplex
java.lang.Object
complex.AbstractComplex
complex.StandardComplex
geoComplex.StandardGeoComplex
- All Implemented Interfaces:
- Complex, EditableComplex, EditableGeoComplex, GeoComplex
- public class StandardGeoComplex
- extends StandardComplex
- implements EditableGeoComplex
A standard implementation of a geometric complex, using a HashMap of cells.
- Author:
- ting
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StandardGeoComplex
public StandardGeoComplex(java.util.SortedMap map,
int dim)
StandardGeoComplex
public StandardGeoComplex(int dim)
getGeoCell
public GeoCell getGeoCell(CellID cell)
- Description copied from interface:
GeoComplex
- Returns a cell of this complex as a
GeoCell
object. This is just a shortcut for
(GeoCell) getCell()
- Specified by:
getGeoCell
in interface GeoComplex
- Parameters:
cell
- the ID of the cell
- Returns:
- the selected cell as an instance of
GeoCell
- See Also:
Complex#getCell()
addCell
public void addCell(StandardCell cell)
- Specified by:
addCell
in interface EditableComplex
- Overrides:
addCell
in class StandardComplex
getGeoCopy
public EditableGeoComplex getGeoCopy()
- Specified by:
getGeoCopy
in interface GeoComplex
getPartofGeoComplex
public EditableGeoComplex getPartofGeoComplex(java.util.Set collection)
- Specified by:
getPartofGeoComplex
in interface GeoComplex
getAllBoundaryCells
private java.util.Set getAllBoundaryCells(java.util.Set collection)