|
|||||||||||
| 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 Complexpublic java.util.Iterator getCellIterator()
Complex
getCellIterator in interface ComplexCellpublic boolean hasCell(CellID cell)
Complex
hasCell in interface Complexcell - the ID of the cell
public Cell getCell(CellID cell)
Complex
getCell in interface Complexcell - the ID of the cell
Cellpublic void addCell(StandardCell cell)
addCell in interface EditableComplexpublic void removeCell(CellID cellID)
removeCell in interface EditableComplexpublic int getCellCount()
Complex
getCellCount in interface ComplexgetCellCount in class AbstractComplexpublic CellID getMaxCellID()
Complex
getMaxCellID in interface ComplexgetMaxCellID in class AbstractComplexpublic EditableComplex getCopy()
Complex
getCopy in interface Complexpublic EditableComplex getPartofComplex(java.util.Set collection)
Complex
getPartofComplex in interface Complexcollection -
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 | ||||||||||