jason.core.cache
Class SizeCacheStrategyImpl

java.lang.Object
  |
  +--jason.core.cache.SizeCacheStrategyImpl
All Implemented Interfaces:
CacheStrategy

public class SizeCacheStrategyImpl
extends java.lang.Object
implements CacheStrategy

Created Fri May 10 14:11:52 2002

Simple strategy that delete the older item of the cache

See Also:
CacheStrategy

Constructor Summary
SizeCacheStrategyImpl(int size)
           
 
Method Summary
 void garbageCache(Cache cache, java.util.AbstractList list)
          This method is called by the Cache each time an item is added by the storeObject method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SizeCacheStrategyImpl

public SizeCacheStrategyImpl(int size)
Method Detail

garbageCache

public void garbageCache(Cache cache,
                         java.util.AbstractList list)
Description copied from interface: CacheStrategy
This method is called by the Cache each time an item is added by the storeObject method

Specified by:
garbageCache in interface CacheStrategy
Parameters:
cache - the cache to garbage
list - is a dataModel for the cache, the tied classed will alter this content. This dataModel contains a set of object key