|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--cad.simcad.maps.CellGroup
|
+--cad.simcad.maps.CellRectangle
a Group of cells forming a rectangular shape This is a subclass of CellGroup
| Field Summary |
| Fields inherited from class cad.simcad.maps.CellGroup |
_art, _cellMap, _cellNum, _cells, _maxHeight, _maxWidth, _ref, _value, _z |
| Constructor Summary | |
CellRectangle(CellMap cellMap,
Cell[][] cells)
Creates new CellRectangle |
|
CellRectangle(CellMap cellMap,
Cell[][] cells,
Cell ref)
Creates new CellRectangle |
|
| Method Summary | |
int |
compare(java.lang.Object cellOne,
java.lang.Object cellTwo)
Compare two Cells. |
CellGroup |
createInstance(CellMap cellMap,
Cell[][] newCells)
|
CellGroup |
createInstance(CellMap cellMap,
Cell[][] newCells,
Cell ref)
|
boolean |
equals(PathPlace pp)
|
double |
getCostToReachFrom(PathPlace pp,
PathUser pu)
Returns the cost associated with originating cell and path user |
MapUnit[] |
getInnerMapUnitBoundary()
Returns an Array of MapUnits that make the inner boundary of the PathPlace This method applied to a MapUnit PathPlace returns itself |
int |
getNumberOfUnits()
Returns the number of units contained in the PathPlace |
int |
getSteepRatio(MapUnit mu)
|
java.util.TreeSet |
sortMapUnits(MapUnit[] mus)
Returns an array of sorted MapUnits |
| Methods inherited from class cad.simcad.maps.CellGroup |
belongsTo, contained, contains, containsMapUnit, getAdjacentPathPlaces, getAverageAltitude, getBiggestXLength, getBiggestYLength, getCells, getDifference, getEastX, getElevation, getGroupHeight, getGroupWidth, getImplementingObject, getIntersection, getMap, getMyAdjacentMapUnits, getNorthY, getNotMyAdjacentMapUnits, getNumberOfCells, getOuterMapUnitBoundary, getRatio, getResolution, getSouthY, getUnits, getValue, getWestX, getX, getY, intersection, isAdjacent, moveEast, moveNorth, moveNorthEast, moveNorthWest, moveSouth, moveSouthEast, moveSouthWest, moveWest, setValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
equals |
| Constructor Detail |
public CellRectangle(CellMap cellMap,
Cell[][] cells,
Cell ref)
public CellRectangle(CellMap cellMap,
Cell[][] cells)
| Method Detail |
public double getCostToReachFrom(PathPlace pp,
PathUser pu)
getCostToReachFrom in interface PathPlacegetCostToReachFrom in class CellGrouppublic int getSteepRatio(MapUnit mu)
getSteepRatio in class CellGrouppublic java.util.TreeSet sortMapUnits(MapUnit[] mus)
public MapUnit[] getInnerMapUnitBoundary()
getInnerMapUnitBoundary in interface PathPlacegetInnerMapUnitBoundary in class CellGroup
public CellGroup createInstance(CellMap cellMap,
Cell[][] newCells)
createInstance in class CellGroup
public CellGroup createInstance(CellMap cellMap,
Cell[][] newCells,
Cell ref)
createInstance in class CellGroup
public int compare(java.lang.Object cellOne,
java.lang.Object cellTwo)
public boolean equals(PathPlace pp)
public int getNumberOfUnits()
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||