nl.tudelft.goal.unreal.floydwarshall
Class FloydWarshallMapCache
java.lang.Object
nl.tudelft.goal.unreal.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 © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.