nl.tudelft.goal.ut2004.floydwarshall
Class FloydWarshallMapCache

Package class diagram package FloydWarshallMapCache
java.lang.Object
  extended by nl.tudelft.goal.ut2004.floydwarshall.FloydWarshallMapCache

public final class FloydWarshallMapCache
extends Object

Cache for FloydWarshallMaps. 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

Method Summary
 FloydWarshallMap createMap(MapPointListObtained event, int badEdgeFlag, Logger log)
           
static FloydWarshallMapCache getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.