|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcomplex.AbstractComplex
complex.StandardComplex
A standard implementation of a complex, using a HashMap of cells.
Field Summary | |
protected java.util.SortedMap |
cellMap
|
protected int |
dimension
|
Constructor Summary | |
StandardComplex(int dim)
|
|
StandardComplex(java.util.SortedMap map,
int dim)
|
Method Summary | |
void |
addCell(StandardCell cell)
|
private java.util.Set |
getAllBoundaryCells(java.util.Set collection)
|
Cell |
getCell(CellID cell)
Returns the cell with the specified ID. |
int |
getCellCount()
Returns the number of cells in this complex object. |
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 |
int |
getDim()
Returns the Dimension of the complex (which has to be larger or equal to the maximal dimension of the contained cells). |
CellID |
getMaxCellID()
Returns The maximum CellID of this complex object. |
EditableComplex |
getPartofComplex(java.util.Set collection)
collection consist of CellID, search a minimal editable complex, which contains all member of this collection |
boolean |
hasCell(CellID cell)
Checks if a cell with the specified ID is contained in this complex. |
void |
removeCell(CellID cellID)
|
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 |
Field Detail |
protected java.util.SortedMap cellMap
protected int dimension
Constructor Detail |
public StandardComplex(java.util.SortedMap map, int dim)
public StandardComplex(int dim)
Method Detail |
public int getDim()
Complex
getDim
in interface Complex
public java.util.Iterator getCellIterator()
Complex
getCellIterator
in interface Complex
Cell
public boolean hasCell(CellID cell)
Complex
hasCell
in interface Complex
cell
- the ID of the cell
public Cell getCell(CellID cell)
Complex
getCell
in interface Complex
cell
- the ID of the cell
Cell
public void addCell(StandardCell cell)
addCell
in interface EditableComplex
public void removeCell(CellID cellID)
removeCell
in interface EditableComplex
public int getCellCount()
Complex
getCellCount
in interface Complex
getCellCount
in class AbstractComplex
public CellID getMaxCellID()
Complex
getMaxCellID
in interface Complex
getMaxCellID
in class AbstractComplex
public EditableComplex getCopy()
Complex
getCopy
in interface Complex
public EditableComplex getPartofComplex(java.util.Set collection)
Complex
getPartofComplex
in interface Complex
collection
-
private java.util.Set getAllBoundaryCells(java.util.Set collection)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |