package ru.simplemaps.osmapi.cache;
import ru.simplemaps.osmapi.OSMData;
import ru.simplemaps.osmapi.common.BBox;
/**
* Manages cached OSM data
*
* @author enaku_adm
* @since 23.07.2010 9:50:12
*/
public interface OSMCache {
/**
* Simply load information from cache
*
* @param box bounding box to get cached data
* @return loaded data
*/
OSMData getCachedData(BBox box);
void writeData(BBox box, OSMData data);
void clear(BBox box);
/**
* Calculates what data in cache intersects with specified box
*
* @param box box to check
* @return information about intersection
*/
CacheInformation getIntersectionWithCache(BBox box);
}
|