|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This intereface defines the minimum services an object should provide if the object is to be included in a Path object
Method Summary | |
boolean |
contained(PathPlace pp)
|
boolean |
contains(PathPlace pp)
|
boolean |
containsMapUnit(MapUnit mu)
Returns true if the PathPlace contains the MapUnit given in argument |
boolean |
equals(PathPlace pp)
|
PathPlace[] |
getAdjacentPathPlaces()
Returns the array of adjacent PathPlace to this one. |
int |
getBiggestXLength()
|
int |
getBiggestYLength()
|
double |
getCostToReachFrom(PathPlace pp,
PathUser pu)
|
MapUnit[] |
getDifference(PathPlace pp)
Return the MapUnits of the PathPlace that are not contained in the given PathPlace |
int |
getEastX()
|
MapUnit[] |
getInnerMapUnitBoundary()
Returns an Array of MapUnits that make the inner boundary of the PathPlace This method applied to a MapUnit PathPlace returns itself |
MapUnit[] |
getIntersection(PathPlace pp)
Return the MapUnit contained in both PathPlaces( argument and object) |
AbstractMap |
getMap()
|
MapUnit[] |
getMyAdjacentMapUnits(PathPlace pp)
Returns the MapUnits of this PathPlace adjacent to the PathPlace given in argument |
int |
getNorthY()
|
MapUnit[] |
getNotMyAdjacentMapUnits(PathPlace pp)
Returns the MapUnits of the PathPlace given in argument adjacent to the current PathPlace |
int |
getNumberOfUnits()
Returns the number of units contained in the PathPlace |
MapUnit[] |
getOuterMapUnitBoundary()
Returns an Array of MapUnits that make the outer boundary of the PathPlace This method applied to a MapUnit PathPlace returns the same MapUnits |
int |
getSouthY()
|
MapUnit[] |
getUnits()
Returns an array of the MapUnit making up the PathPlace |
int |
getWestX()
|
int |
getX()
|
int |
getY()
|
boolean |
isAdjacent(PathPlace mp)
Returns true if the PathPlace given in argument is adjacent returns false otherwise |
void |
setValue(double value)
|
Methods inherited from interface java.util.Comparator |
compare, equals |
Method Detail |
public double getCostToReachFrom(PathPlace pp, PathUser pu)
public boolean isAdjacent(PathPlace mp)
public PathPlace[] getAdjacentPathPlaces()
public void setValue(double value)
public MapUnit[] getUnits()
public MapUnit[] getNotMyAdjacentMapUnits(PathPlace pp)
public MapUnit[] getMyAdjacentMapUnits(PathPlace pp)
public MapUnit[] getOuterMapUnitBoundary()
public MapUnit[] getInnerMapUnitBoundary()
public boolean containsMapUnit(MapUnit mu)
public MapUnit[] getIntersection(PathPlace pp)
public MapUnit[] getDifference(PathPlace pp)
public boolean contains(PathPlace pp)
public boolean contained(PathPlace pp)
public int getBiggestXLength()
public int getBiggestYLength()
public int getNorthY()
public int getSouthY()
public int getWestX()
public int getEastX()
public int getX()
public int getY()
public AbstractMap getMap()
public boolean equals(PathPlace pp)
public int getNumberOfUnits()
|
![]() |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |