complex
Class StandardCell

java.lang.Object
  extended bycomplex.StandardCell
All Implemented Interfaces:
Cell
Direct Known Subclasses:
StandardGeoCell

public class StandardCell
extends java.lang.Object
implements Cell

A standard implementation of a cell of a complex.

Author:
ting

Field Summary
private  IntegerMap boundary
           
private  CellID cellId
           
protected  Complex complex
           
private  int dim
           
 
Constructor Summary
StandardCell(CellID id, int dim, Complex complex)
           
StandardCell(CellID id, IntegerMap map, int dim, Complex complex)
           
 
Method Summary
 IntegerMap getBoundary()
          Returns the boundary of this cell.
 Complex getComplex()
          Returns the complex containing this cell.
 int getDim()
          Returns the dimension of this cell.
 CellID getID()
          Returns the ID of this cell.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

boundary

private IntegerMap boundary

dim

private int dim

cellId

private CellID cellId

complex

protected Complex complex
Constructor Detail

StandardCell

public StandardCell(CellID id,
                    IntegerMap map,
                    int dim,
                    Complex complex)

StandardCell

public StandardCell(CellID id,
                    int dim,
                    Complex complex)
Method Detail

getID

public CellID getID()
Description copied from interface: Cell
Returns the ID of this cell. The ID should be unique in the associated complex

Specified by:
getID in interface Cell
Returns:
ID

getBoundary

public IntegerMap getBoundary()
Description copied from interface: Cell
Returns the boundary of this cell. Each cell contained in the boundary should have dimension d-1. The boundary of the boundary has to sum up to zero.

Specified by:
getBoundary in interface Cell
Returns:
boundary as a Map CellID->Integer

getDim

public int getDim()
Description copied from interface: Cell
Returns the dimension of this cell. This can be at most the dimension of the associated complex.

Specified by:
getDim in interface Cell
Returns:
dimension

getComplex

public Complex getComplex()
Description copied from interface: Cell
Returns the complex containing this cell.

Specified by:
getComplex in interface Cell