HOG2
|
Occupancy interface which works with graphState and graphMove A wrapper to use with an exisitng BaseMapOccupancyInterface. More...
#include <AbstractWeightedSearchAlgorithm.h>
Public Member Functions | |
GraphOccupancyInterface (BaseMapOccupancyInterface *b, Graph *_g) | |
virtual | ~GraphOccupancyInterface () |
virtual void | SetStateOccupied (const graphState &gs, bool b) |
virtual bool | GetStateOccupied (const graphState &gs) |
virtual bool | CanMove (const graphState &gs1, const graphState &gs2) |
virtual void | MoveUnitOccupancy (const graphState &gs1, const graphState &gs2) |
Public Member Functions inherited from OccupancyInterface< graphState, graphMove > | |
virtual | ~OccupancyInterface () |
Private Member Functions | |
xyLoc | Convert (const graphState &gs) |
long | CalculateIndex (uint16_t x, uint16_t y) |
Private Attributes | |
BaseMapOccupancyInterface * | boi |
Graph * | g |
Occupancy interface which works with graphState and graphMove A wrapper to use with an exisitng BaseMapOccupancyInterface.
It converts graphState to xyLoc, and performs the computation on the BaseMapOccupancyInterface.
Definition at line 39 of file AbstractWeightedSearchAlgorithm.h.
|
inline |
Definition at line 42 of file AbstractWeightedSearchAlgorithm.h.
|
inlinevirtual |
Definition at line 43 of file AbstractWeightedSearchAlgorithm.h.
|
private |
|
inlinevirtual |
Implements OccupancyInterface< graphState, graphMove >.
Definition at line 48 of file AbstractWeightedSearchAlgorithm.h.
References boi, BaseMapOccupancyInterface::CanMove(), and Convert().
|
inlineprivate |
Definition at line 54 of file AbstractWeightedSearchAlgorithm.h.
References g, node::GetLabelL(), Graph::GetNode(), GraphAbstractionConstants::kFirstData, xyLoc::x, and xyLoc::y.
Referenced by CanMove(), GetStateOccupied(), MoveUnitOccupancy(), and SetStateOccupied().
|
inlinevirtual |
Implements OccupancyInterface< graphState, graphMove >.
Definition at line 46 of file AbstractWeightedSearchAlgorithm.h.
References boi, Convert(), and BaseMapOccupancyInterface::GetStateOccupied().
|
inlinevirtual |
Implements OccupancyInterface< graphState, graphMove >.
Definition at line 50 of file AbstractWeightedSearchAlgorithm.h.
References boi, Convert(), and BaseMapOccupancyInterface::MoveUnitOccupancy().
|
inlinevirtual |
Implements OccupancyInterface< graphState, graphMove >.
Definition at line 44 of file AbstractWeightedSearchAlgorithm.h.
References boi, Convert(), and BaseMapOccupancyInterface::SetStateOccupied().
|
private |
Definition at line 64 of file AbstractWeightedSearchAlgorithm.h.
Referenced by CanMove(), GetStateOccupied(), GraphOccupancyInterface(), MoveUnitOccupancy(), and SetStateOccupied().
|
private |
Definition at line 72 of file AbstractWeightedSearchAlgorithm.h.
Referenced by Convert(), and GraphOccupancyInterface().