|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensha.sha.calc.hazardMap.dagGen.HazardDataSetDAGCreator
public class HazardDataSetDAGCreator
This class generates a simple Condor DAG for a given ERF, IMR Hash Map(s), and list of sites. This DAG is meant to be run on a shared filesystem, where the output directory for DAG generation is also visible on the compute nodes/slots. It could be extended in the future to use Globus and GridFTP to get around this limitation.
| Field Summary | |
|---|---|
protected CurveResultsArchiver |
archiver
|
protected CalculationSettings |
calcSettings
|
static int |
DAGMAN_MAX_IDLE
|
static int |
DAGMAN_MAX_POST
|
static int |
DAGMAN_MAX_PRE
|
protected ERF |
erf
|
static String |
ERF_SERIALIZED_FILE_NAME
|
protected List<Map<TectonicRegionType,ScalarIMR>> |
imrMaps
|
protected String |
jarFile
|
protected String |
javaExec
|
protected List<Site> |
sites
|
protected SubmitScript.Universe |
universe
|
| Constructor Summary | |
|---|---|
HazardDataSetDAGCreator(CalculationInputsXMLFile inputs,
String javaExec,
String jarFile)
Convenience constructor for if you already have the inputs from an XML file. |
|
HazardDataSetDAGCreator(ERF erf,
List<Map<TectonicRegionType,ScalarIMR>> imrMaps,
List<Parameter<Double>> imts,
List<Site> sites,
CalculationSettings calcSettings,
CurveResultsArchiver archiver,
String javaExec,
String jarFile)
Main constructor with objects/info necessary for hazard data set calculation. |
|
| Method Summary | |
|---|---|
static void |
createSubmitDAGScript(String odir,
boolean run)
Create a DAG submit script with common tuning parameters |
protected DAG |
getPostDAG(File outputDir)
Can be overridden to add jobs at the end of the workflow |
protected DAG |
getPreDAG(File outputDir)
Can be overridden to add jobs at the start of the workflow |
String |
getRequirements()
|
SubmitScript.Universe |
getUniverse()
|
static void |
main(String[] args)
|
void |
setRequirements(String requirements)
|
void |
setUniverse(SubmitScript.Universe universe)
|
static void |
usage()
|
void |
writeDAG(File outputDir,
int sitesPerJob,
boolean run)
Writes the DAG to the specified output directory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ERF_SERIALIZED_FILE_NAME
protected ERF erf
protected List<Map<TectonicRegionType,ScalarIMR>> imrMaps
protected List<Site> sites
protected CalculationSettings calcSettings
protected CurveResultsArchiver archiver
protected String javaExec
protected String jarFile
protected SubmitScript.Universe universe
public static int DAGMAN_MAX_IDLE
public static int DAGMAN_MAX_PRE
public static int DAGMAN_MAX_POST
| Constructor Detail |
|---|
public HazardDataSetDAGCreator(CalculationInputsXMLFile inputs,
String javaExec,
String jarFile)
inputs - javaExec - jarFile -
public HazardDataSetDAGCreator(ERF erf,
List<Map<TectonicRegionType,ScalarIMR>> imrMaps,
List<Parameter<Double>> imts,
List<Site> sites,
CalculationSettings calcSettings,
CurveResultsArchiver archiver,
String javaExec,
String jarFile)
erf - - The ERFimrMaps - - A list of IMR/TectonicRegion hash mapsimts - - A list of imt's for each imrMap (or null to use IMT from IMR)sites - - The list of sites that need to be calculated. All site parameters should already be setcalcSettings - - Some simple calculation settings (such as X values, cutoff distance)archiver - - The archiver used to store curves once calculatedjavaExec - - The path to the java executablejarFile - - The path to the jar file used for calculation.| Method Detail |
|---|
protected DAG getPreDAG(File outputDir)
throws IOException
IOException
protected DAG getPostDAG(File outputDir)
throws IOException
IOException
public void writeDAG(File outputDir,
int sitesPerJob,
boolean run)
throws IOException
outputDir - sitesPerJob - run -
IOExceptionpublic SubmitScript.Universe getUniverse()
public void setUniverse(SubmitScript.Universe universe)
public static void createSubmitDAGScript(String odir,
boolean run)
throws IOException
odir - run -
IOExceptionpublic void setRequirements(String requirements)
public String getRequirements()
public static void usage()
public static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||