org.opensha.sha.cybershake.bombay
Class RupHyposWithinCutoff

java.lang.Object
  extended by org.opensha.sha.cybershake.bombay.RupHyposWithinCutoff

public class RupHyposWithinCutoff
extends Object


Constructor Summary
RupHyposWithinCutoff(DBAccess db, Location hypoLocation, double maxDistance, String sourceNameConstr, boolean useDepth, double minMag)
           
 
Method Summary
 AbstractERF getERF()
           
 ArrayList<Integer> getExcludedRVs(int sourceID, int rupID)
           
static String getKey(int sourceID, int rupID)
           
 int getNumExcluded(int sourceID, int rupID)
           
 ArrayList<Integer> getVariationsWithinCutoff(int sourceID, int rupID)
           
static HashMap<String,ArrayList<Integer>> loadMapFromFile(String fileName)
           
 void writeSourceRupFile(String fileName)
           
 void writeSourceRupInfoFile(String fileName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RupHyposWithinCutoff

public RupHyposWithinCutoff(DBAccess db,
                            Location hypoLocation,
                            double maxDistance,
                            String sourceNameConstr,
                            boolean useDepth,
                            double minMag)
Method Detail

getKey

public static String getKey(int sourceID,
                            int rupID)

writeSourceRupFile

public void writeSourceRupFile(String fileName)
                        throws IOException
Throws:
IOException

writeSourceRupInfoFile

public void writeSourceRupInfoFile(String fileName)
                            throws IOException
Throws:
IOException

loadMapFromFile

public static HashMap<String,ArrayList<Integer>> loadMapFromFile(String fileName)
                                                          throws FileNotFoundException,
                                                                 IOException
Throws:
FileNotFoundException
IOException

getERF

public AbstractERF getERF()

getNumExcluded

public int getNumExcluded(int sourceID,
                          int rupID)

getExcludedRVs

public ArrayList<Integer> getExcludedRVs(int sourceID,
                                         int rupID)

getVariationsWithinCutoff

public ArrayList<Integer> getVariationsWithinCutoff(int sourceID,
                                                    int rupID)