org.opensha.commons.util
Class XYZHashMap

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<Location,Double>
          extended by org.opensha.commons.util.XYZHashMap
All Implemented Interfaces:
Serializable, Cloneable, Map<Location,Double>

public class XYZHashMap
extends HashMap<Location,Double>

HashMap that loads and stores the values in a Generic Mapping Tools stle XYZ files.

Author:
kevin
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
XYZHashMap(String xyzFile)
           
 
Method Summary
 double get(double lat, double lon)
           
 void put(double lat, double lon, double val)
           
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

XYZHashMap

public XYZHashMap(String xyzFile)
           throws FileNotFoundException,
                  IOException
Throws:
FileNotFoundException
IOException
Method Detail

get

public double get(double lat,
                  double lon)

put

public void put(double lat,
                double lon,
                double val)