OSMCache.java :  » GPS » simplemaps » ru » simplemaps » osmapi » cache » Android Open Source

Android Open Source » GPS » simplemaps 
simplemaps » ru » simplemaps » osmapi » cache » OSMCache.java
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);
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.