geoComplex
Class StandardGeoComplex

java.lang.Object
  extended bycomplex.AbstractComplex
      extended bycomplex.StandardComplex
          extended bygeoComplex.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

Field Summary
 
Fields inherited from class complex.StandardComplex
cellMap, dimension
 
Constructor Summary
StandardGeoComplex(int dim)
           
StandardGeoComplex(java.util.SortedMap map, int dim)
           
 
Method Summary
 void addCell(StandardCell cell)
           
private  java.util.Set getAllBoundaryCells(java.util.Set collection)
           
 GeoCell getGeoCell(CellID cell)
          Returns a cell of this complex as a GeoCell object.
 EditableGeoComplex getGeoCopy()
           
 EditableGeoComplex getPartofGeoComplex(java.util.Set collection)
           
 
Methods inherited from class complex.StandardComplex
getCell, getCellCount, getCellIterator, getCopy, getDim, getMaxCellID, getPartofComplex, hasCell, removeCell
 
Methods inherited from class complex.AbstractComplex
boundary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface complex.Complex
boundary, getCell, getCellCount, getCellIterator, getCopy, getDim, getMaxCellID, getPartofComplex, hasCell
 
Methods inherited from interface complex.EditableComplex
removeCell
 

Constructor Detail

StandardGeoComplex

public StandardGeoComplex(java.util.SortedMap map,
                          int dim)

StandardGeoComplex

public StandardGeoComplex(int dim)
Method Detail

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)