complex
Class DBCell

java.lang.Object
  extended bycomplex.DBCell
All Implemented Interfaces:
Cell
Direct Known Subclasses:
DBGeoCell

public class DBCell
extends java.lang.Object
implements Cell

A cell of a complex, which is contained in a database.

Author:
ting

Field Summary
(package private)  CellID cellId
           
(package private)  int dimension
           
(package private)  boolean hasDimension
           
 DBSession session
           
 
Constructor Summary
DBCell(DBSession session, CellID cellId)
           
DBCell(DBSession session, CellID cellId, int dimension)
           
 
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

session

public DBSession session

cellId

CellID cellId

dimension

int dimension

hasDimension

boolean hasDimension
Constructor Detail

DBCell

public DBCell(DBSession session,
              CellID cellId)

DBCell

public DBCell(DBSession session,
              CellID cellId,
              int dimension)
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