bamboo.sim
Class CachingNetworkModel

java.lang.Object
  extended by bamboo.sim.CachingNetworkModel
All Implemented Interfaces:
NetworkModel
Direct Known Subclasses:
TransitStub

public abstract class CachingNetworkModel
extends Object
implements NetworkModel


Nested Class Summary
static class CachingNetworkModel.SrcDst
           
 
Nested classes/interfaces inherited from interface bamboo.sim.NetworkModel
NetworkModel.RouteInfo
 
Field Summary
protected  LruMap cache
           
 
Constructor Summary
CachingNetworkModel(int cache_size)
           
 
Method Summary
 NetworkModel.RouteInfo compute_route_info(int src, int dst)
           
protected abstract  NetworkModel.RouteInfo the_real_compute_route_info(int src, int dst)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cache

protected LruMap cache
Constructor Detail

CachingNetworkModel

public CachingNetworkModel(int cache_size)
Method Detail

compute_route_info

public NetworkModel.RouteInfo compute_route_info(int src,
                                                 int dst)
Specified by:
compute_route_info in interface NetworkModel

the_real_compute_route_info

protected abstract NetworkModel.RouteInfo the_real_compute_route_info(int src,
                                                                      int dst)