nl.tudelft.goal.ut2004.floydwarshall
Class FloydWarshallMapCache
java.lang.Object
nl.tudelft.goal.ut2004.floydwarshall.FloydWarshallMapCache
public final class FloydWarshallMapCache
- extends Object
Cache for FloydWarshallMap
s. Because FloydWarshallMaps consume a fair
amount of memory it is better to share this map between bots. As long as a
bot has a reference to a SharedFloydWarshallMap that map will remain in
memory.
A maps identity is based on the lexographically smallest unrealID and the
badEdgeflag. As such the FloydWarshallMapCache can handle different maps at
the same time.
- Author:
- mpkorstanje
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
createMap
public FloydWarshallMap createMap(MapPointListObtained event,
int badEdgeFlag,
Logger log)
getInstance
public static FloydWarshallMapCache getInstance()
Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.