geoComplex
Class DBGeoComplex

java.lang.Object
  extended bycomplex.AbstractComplex
      extended bycomplex.DBComplex
          extended bygeoComplex.DBGeoComplex
All Implemented Interfaces:
Complex, GeoComplex

public class DBGeoComplex
extends DBComplex
implements GeoComplex

A geometric complex, which is contained in a database.

Author:
ting

Field Summary
 
Fields inherited from class complex.DBComplex
session
 
Constructor Summary
DBGeoComplex(DBSession session)
           
 
Method Summary
 Cell getCell(CellID cell)
          Returns the cell with the specified ID.
 java.util.Iterator getCellIterator()
          Returns an iterator over the Cells contained in this Complex.
 EditableComplex getCopy()
          copy simple this complex a new complex with same data, but the return type should be EditableComplex, z.b copy DBComplex nach StandardComplex
 GeoCell getGeoCell(CellID cell)
          Returns a cell of this complex as a GeoCell object.
 EditableGeoComplex getGeoCopy()
          copy geo-database to standardGeoComplex
 EditableComplex getPartofComplex(java.util.Set collection)
          collection consist of CellID, search a minimal editable complex, which contains all member of this collection
 EditableGeoComplex getPartofGeoComplex(java.util.Set collection)
           
 
Methods inherited from class complex.DBComplex
getAllBoundaryCells, getAllCells, getCellCount, getDim, getMaxCellID, hasCell
 
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, getCellCount, getDim, getMaxCellID, hasCell
 

Constructor Detail

DBGeoComplex

public DBGeoComplex(DBSession session)
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()

getCell

public Cell getCell(CellID cell)
Description copied from interface: Complex
Returns the cell with the specified ID.

Specified by:
getCell in interface Complex
Overrides:
getCell in class DBComplex

getCellIterator

public java.util.Iterator getCellIterator()
Description copied from interface: Complex
Returns an iterator over the Cells contained in this Complex.

Specified by:
getCellIterator in interface Complex
Overrides:
getCellIterator in class DBComplex

getGeoCopy

public EditableGeoComplex getGeoCopy()
copy geo-database to standardGeoComplex

Specified by:
getGeoCopy in interface GeoComplex
Returns:
a StandardComplex of this complex

getCopy

public EditableComplex getCopy()
Description copied from interface: Complex
copy simple this complex a new complex with same data, but the return type should be EditableComplex, z.b copy DBComplex nach StandardComplex

Specified by:
getCopy in interface Complex
Overrides:
getCopy in class DBComplex
Returns:
a StandardComplex of this complex

getPartofComplex

public EditableComplex getPartofComplex(java.util.Set collection)
Description copied from interface: Complex
collection consist of CellID, search a minimal editable complex, which contains all member of this collection

Specified by:
getPartofComplex in interface Complex
Overrides:
getPartofComplex in class DBComplex
Parameters:
collection -
Returns:

getPartofGeoComplex

public EditableGeoComplex getPartofGeoComplex(java.util.Set collection)
Specified by:
getPartofGeoComplex in interface GeoComplex