|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.pogamut.base.agent.module.AgentModule<AGENT> cz.cuni.amis.pogamut.base.agent.module.SensorModule<cz.cuni.amis.pogamut.base.agent.IGhostAgent> nl.tudelft.goal.unreal.floydwarshall.SharedFloydWarshallMap
public class SharedFloydWarshallMap
Wrapper for a FloyWarschallMap shared by multiple agents.
Field Summary | |
---|---|
protected int |
badEdgeFlag
Prohibited edges. |
protected FloydWarshallMap |
sharedMap
Our map |
Fields inherited from class cz.cuni.amis.pogamut.base.agent.module.SensorModule |
---|
worldView |
Fields inherited from class cz.cuni.amis.pogamut.base.agent.module.AgentModule |
---|
agent, controller, eventBus, log |
Constructor Summary | |
---|---|
SharedFloydWarshallMap(cz.cuni.amis.pogamut.base.agent.IGhostAgent bot)
|
|
SharedFloydWarshallMap(cz.cuni.amis.pogamut.base.agent.IGhostAgent bot,
int badEdgeFlag,
Logger log)
|
|
SharedFloydWarshallMap(cz.cuni.amis.pogamut.base.agent.IGhostAgent bot,
Logger log)
|
Method Summary | |
---|---|
boolean |
checkLink(NavPointNeighbourLink edge)
Checks whether the edge is usable. |
protected void |
cleanUp()
Hook where to perform clean up of data structures of the module. |
cz.cuni.amis.pogamut.base.agent.navigation.IPathFuture<NavPoint> |
computePath(NavPoint from,
NavPoint to)
Returns path between navpoints 'from' -> 'to'. |
float |
getDistance(NavPoint from,
NavPoint to)
Calculate's distance between two nav points (using pathfinding). |
List<NavPoint> |
getPath(NavPoint from,
NavPoint to)
Returns path between navpoints 'from' -> 'to'. |
boolean |
reachable(NavPoint from,
NavPoint to)
Whether navpoint 'to' is reachable from the navpoint 'from'. |
void |
refreshPathMatrix()
|
Methods inherited from class cz.cuni.amis.pogamut.base.agent.module.AgentModule |
---|
getComponentId, getLog, getState, initComponentId, isRunning, kill, pause, reset, resume, start, stop, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int badEdgeFlag
protected FloydWarshallMap sharedMap
Constructor Detail |
---|
public SharedFloydWarshallMap(cz.cuni.amis.pogamut.base.agent.IGhostAgent bot)
public SharedFloydWarshallMap(cz.cuni.amis.pogamut.base.agent.IGhostAgent bot, Logger log)
public SharedFloydWarshallMap(cz.cuni.amis.pogamut.base.agent.IGhostAgent bot, int badEdgeFlag, Logger log)
Method Detail |
---|
public cz.cuni.amis.pogamut.base.agent.navigation.IPathFuture<NavPoint> computePath(NavPoint from, NavPoint to)
Throws exception if object is disabled, see
FloydWarshallMap#setEnabled(boolean)
. Note that the object is
enabled by default.
computePath
in interface cz.cuni.amis.pogamut.base.agent.navigation.IPathPlanner<NavPoint>
from
- to
-
public boolean reachable(NavPoint from, NavPoint to)
Throws exception if object is disabled, see
FloydWarshallMap#setEnabled(boolean)
. Note that the object is
enabled by default.
from
- to
-
public float getDistance(NavPoint from, NavPoint to)
Throws exception if object is disabled, see
FloydWarshallMap#setEnabled(boolean)
. Note that the object is
enabled by default.
public List<NavPoint> getPath(NavPoint from, NavPoint to)
Throws exception if object is disabled, see
FloydWarshallMap#setEnabled(boolean)
. Note that the object is
enabled by default.
from
- to
-
public boolean checkLink(NavPointNeighbourLink edge)
from
- Starting nav point.edge
- NeighNav object representing the edge.
protected void cleanUp()
cleanUp
in class cz.cuni.amis.pogamut.base.agent.module.AgentModule<cz.cuni.amis.pogamut.base.agent.IGhostAgent>
public void refreshPathMatrix()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |