Class LevelSet

    • Constructor Detail

      • LevelSet

        public LevelSet​(AVList params)
      • LevelSet

        public LevelSet​(LevelSet source)
    • Method Detail

      • setValue

        public java.lang.Object setValue​(java.lang.String key,
                                         java.lang.Object value)
        Description copied from interface: AVList
        Adds a key/value pair to the list. Replaces an existing key/value pair if the list already contains the key.
        Specified by:
        setValue in interface AVList
        Overrides:
        setValue in class AVListImpl
        Parameters:
        key - the attribute name. May not be null.
        value - the attribute value. May be null, in which case any existing value for the key is removed from the collection.
        Returns:
        previous value associated with specified key, or null if there was no mapping for key. A null return can also indicate that the map previously associated null with the specified key, if the implementation supports null values.
      • getValue

        public java.lang.Object getValue​(java.lang.String key)
        Description copied from interface: AVList
        Returns the value for a specified key.
        Specified by:
        getValue in interface AVList
        Overrides:
        getValue in class AVListImpl
        Parameters:
        key - the attribute name. May not be null.
        Returns:
        the attribute value if one exists in the collection, otherwise null.
      • getSector

        public final Sector getSector()
      • getLevelZeroTileDelta

        public final LatLon getLevelZeroTileDelta()
      • getTileOrigin

        public final LatLon getTileOrigin()
      • getLevels

        public final java.util.ArrayList<Level> getLevels()
      • getLevel

        public final Level getLevel​(int levelNumber)
      • getNumLevels

        public final int getNumLevels()
      • getFirstLevel

        public final Level getFirstLevel()
      • getLastLevel

        public final Level getLastLevel()
      • getNextToLastLevel

        public final Level getNextToLastLevel()
      • getLastLevel

        public final Level getLastLevel​(Sector sector)
      • getLastLevel

        public final Level getLastLevel​(Angle latitude,
                                        Angle longitude)
      • isFinalLevel

        public final boolean isFinalLevel​(int levelNum)
      • isLevelEmpty

        public final boolean isLevelEmpty​(int levelNumber)
      • markResourceAbsent

        public final void markResourceAbsent​(Tile tile)
        Instructs the level set that a tile is likely to be absent.
        Parameters:
        tile - The tile to mark as having an absent resource.
        Throws:
        java.lang.IllegalArgumentException - if tile is null
      • isResourceAbsent

        public final boolean isResourceAbsent​(TileKey tileKey)
        Indicates whether a tile has been marked as absent.
        Parameters:
        tileKey - The key of the tile in question.
        Returns:
        true if the tile is marked absent, otherwise false.
        Throws:
        java.lang.IllegalArgumentException - if tile is null
      • isResourceAbsent

        public final boolean isResourceAbsent​(Tile tile)
        Indicates whether a tile has been marked as absent.
        Parameters:
        tile - The tile in question.
        Returns:
        true if the tile is marked absent, otherwise false.
        Throws:
        java.lang.IllegalArgumentException - if tile is null
      • unmarkResourceAbsent

        public final void unmarkResourceAbsent​(Tile tile)
        Removes the absent-tile mark associated with a tile, if one is associatied.
        Parameters:
        tile - The tile to unmark.
        Throws:
        java.lang.IllegalArgumentException - if tile is null
      • computeSectorForKey

        public Sector computeSectorForKey​(TileKey key)
      • setExpiryTime

        public void setExpiryTime​(long expiryTime)