edu.stanford.math.plex4.homology.chain_basis
public class Cell extends java.lang.Object implements PrimitiveBasisElement
To define a cell within the CW complex, we require its dimensionality, its boundary, and the degrees of the map attaching map followed by a quotient map. The user of this class is advised to be familiar with cellular homology, as described in (for example) section 2.2 of the book "Algebraic Topology" by Allen Hatcher.
The required input degrees are the degrees of the composite map S_a^{n-1}
For example, we will construct a torus using a cell complex.
Constructor and Description |
---|
Cell()
This constructor initializes the cell to be a 0-cell (a vertex),
with the default cellId as the vertex index.
|
Cell(int dimension,
Cell[] boundaryElements)
This constructor initializes a cell to be an n-cell with n > 0.
|
Cell(int dimension,
java.util.Collection<Cell> boundaryElements)
This constructor initializes a cell to be an n-cell with n > 0.
|
Cell(int dimension,
java.util.Collection<Cell> boundaryElements,
int[] attachingDegrees)
This constructor initializes the cell to be an n-cell with n > 0.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
PrimitiveBasisElement[] |
getBoundaryArray()
This function returns the boundary of the current basis element.
|
int[] |
getBoundaryCoefficients()
This function returns the coefficients of the elements of the boundary array.
|
int[] |
getBoundaryIds()
This function returns the cell ids of the boundary elements.
|
int |
getCellId()
This function returns the unique identifier of the cell.
|
int |
getDimension()
This function returns the dimension of the basis element.
|
int |
hashCode() |
java.lang.String |
toString() |
void |
verifyDimension()
This function checks to see if the cell has been glued to boundary
elements all of the same dimension.
|
public Cell()
public Cell(int dimension, java.util.Collection<Cell> boundaryElements)
dimension
- the geometric dimension of the cellboundaryElements
- an array containing the objects in the boundarypublic Cell(int dimension, java.util.Collection<Cell> boundaryElements, int[] attachingDegrees)
dimension
- the geometric dimension of the cellboundaryElements
- an array containing the objects in the boundaryattachingDegrees
- the degrees of the attaching maps to the boundary objectspublic Cell(int dimension, Cell[] boundaryElements)
dimension
- the geometric dimension of the cellboundaryElements
- an array containing the objects in the boundarypublic int[] getBoundaryIds()
public int getCellId()
public PrimitiveBasisElement[] getBoundaryArray()
PrimitiveBasisElement
getBoundaryArray
in interface PrimitiveBasisElement
public int getDimension()
PrimitiveBasisElement
getDimension
in interface PrimitiveBasisElement
public int[] getBoundaryCoefficients()
PrimitiveBasisElement
getBoundaryCoefficients
in interface PrimitiveBasisElement
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public void verifyDimension()