|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--cad.simcad.maps.CellMap | +--cad.simcad.maps.ClassicCellMap | +--cad.simcad.maps.ClassicCellMapNoDiag
Field Summary |
Fields inherited from class cad.simcad.maps.CellMap |
_abstractMapEventListeners, _art, _cell, _cex, _cgex, _fillerServer, _h, _heurFactor, _mapResolution, _name, _objects, _pathPlaceEventListeners, _regions, _statServer, _w |
Constructor Summary | |
ClassicCellMapNoDiag(java.lang.Integer w,
java.lang.Integer h,
int res,
FillerServer fs,
StatServer ss)
Creates new ClassicCellMap |
|
ClassicCellMapNoDiag(int w,
int h,
int res,
FillerServer fs,
StatServer ss)
Creates new ClassicCellMap |
Method Summary | |
boolean |
areAdjacent(MapUnit mu1,
MapUnit mu2)
|
double |
computeHeuristic(PathPlace origin,
PathPlace dest)
calculates the heuristic for the Cell C The heuristic depends on the Map. |
double |
computeHeuristic(PathPlace origin,
PathPlace dest,
double factor)
calculates the heuristic for the Cell C The heuristic depends on the Map. |
Cell[] |
getAdjacent(Cell c)
|
CellGroup[] |
getAdjacent(CellGroup g)
Returns every possible CellGroups adjacent to the CellGroup given in argument It depends of the resolution |
MapUnit[] |
getAdjacent(MapUnit c)
Returns POST : An array of Cell. |
java.lang.String |
getName()
Returns the name of the Map |
java.lang.String |
toString()
|
Methods inherited from class cad.simcad.maps.ClassicCellMap |
getAdjacentUnits, getAdjacentUnits, getMapObjects, getMapObjectsFromRef, getMapUnit, getMapUnitsFromRef, isThereRoom |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ClassicCellMapNoDiag(int w, int h, int res, FillerServer fs, StatServer ss)
public ClassicCellMapNoDiag(java.lang.Integer w, java.lang.Integer h, int res, FillerServer fs, StatServer ss)
Method Detail |
public boolean areAdjacent(MapUnit mu1, MapUnit mu2)
areAdjacent
in class ClassicCellMap
public CellGroup[] getAdjacent(CellGroup g)
getAdjacent
in class ClassicCellMap
public double computeHeuristic(PathPlace origin, PathPlace dest)
computeHeuristic
in interface AbstractMap
computeHeuristic
in class ClassicCellMap
origin
- The PathPlace origin from which we want to compute the heuristicdest
- The PathPlace origin from which we want to compute the heuristic
public double computeHeuristic(PathPlace origin, PathPlace dest, double factor)
computeHeuristic
in interface AbstractMap
computeHeuristic
in class ClassicCellMap
origin
- The PathPlace origin from which we want to compute the heuristicdest
- The PathPlace origin from which we want to compute the heuristicfactor
- the factor by which we want to multiply the heuristic. Typically, more the factor is high, more we want to give weight to the heuristic
public Cell[] getAdjacent(Cell c)
getAdjacent
in class ClassicCellMap
public MapUnit[] getAdjacent(MapUnit c)
getAdjacent
in class ClassicCellMap
public java.lang.String toString()
toString
in class ClassicCellMap
public java.lang.String getName()
AbstractMap
getName
in interface AbstractMap
getName
in class ClassicCellMap
|
![]() |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |