complex
Class AbstractComplex

java.lang.Object
  extended bycomplex.AbstractComplex
All Implemented Interfaces:
Complex
Direct Known Subclasses:
DBComplex, StandardComplex

public abstract class AbstractComplex
extends java.lang.Object
implements Complex


Constructor Summary
AbstractComplex()
           
 
Method Summary
 IntegerMap boundary(IntegerMap cells)
          Calculates the boundary of a set of cells.
 int getCellCount()
          Returns the number of cells in this complex object.
 CellID getMaxCellID()
          Returns The maximum CellID of this complex object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface complex.Complex
getCell, getCellIterator, getCopy, getDim, getPartofComplex, hasCell
 

Constructor Detail

AbstractComplex

public AbstractComplex()
Method Detail

boundary

public IntegerMap boundary(IntegerMap cells)
Description copied from interface: Complex
Calculates the boundary of a set of cells. For every entry (key,value) in the map cells the maps value * getCell(key).boundary() are added.

Specified by:
boundary in interface Complex
Parameters:
cells - a map CellID->Integer
Returns:
the boundary of cells

getCellCount

public int getCellCount()
Description copied from interface: Complex
Returns the number of cells in this complex object.

Specified by:
getCellCount in interface Complex
Returns:
the number of Cells

getMaxCellID

public CellID getMaxCellID()
Description copied from interface: Complex
Returns The maximum CellID of this complex object.

Specified by:
getMaxCellID in interface Complex
Returns:
the maximum CellID of this complex