Package mccombe.terrain
Class DEMReader.CacheEntry
- java.lang.Object
-
- mccombe.terrain.DEMReader.CacheEntry
-
- Enclosing class:
- DEMReader
protected class DEMReader.CacheEntry extends java.lang.Object
CacheEntry -- A class used to store a row of values
-
-
Constructor Summary
Constructors Constructor Description CacheEntry(java.lang.String name, int[] buffer)
Create a CacheEntry object which contains a named row of the current tile.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
getName() Get the name of the CacheEntryint
getValue(int i)
long
lastUsed()
Find when this CacheEntry was last referencedvoid
setLastUsed()
-
-
-
Constructor Detail
-
CacheEntry
public CacheEntry(java.lang.String name, int[] buffer)
Create a CacheEntry object which contains a named row of the current tile.- Parameters:
name
- The name of the row in the form# e.g. "NASADEM_HGT_N51W003#1034" buffer
- an integer buffer of length recordlength() containing the heights for the specified row.
-
-
Method Detail
-
setLastUsed
public void setLastUsed()
-
getName
public java.lang.String getName()
getName() Get the name of the CacheEntry- Returns:
- String the name of this CacheEntry
-
getValue
public int getValue(int i)
- Parameters:
i
- int the index value of the item in the row to fetch- Returns:
- int the value of the specified element
-
lastUsed
public long lastUsed()
Find when this CacheEntry was last referenced- Returns:
- long the cycle number when the entry was last referenced
-
-