org.opensha.sha.calc.hazardMap.mpj
Class MPJHazardCurveDriver

java.lang.Object
  extended by org.opensha.commons.hpc.mpj.taskDispatch.MPJTaskCalculator
      extended by org.opensha.sha.calc.hazardMap.mpj.MPJHazardCurveDriver

public class MPJHazardCurveDriver
extends MPJTaskCalculator


Field Summary
static boolean D
           
protected static SimpleDateFormat df
           
protected static int TAG_NEW_BATCH
           
protected static int TAG_NEW_BATCH_LENGH
           
protected static int TAG_READY_FOR_BATCH
           
 
Fields inherited from class org.opensha.commons.hpc.mpj.taskDispatch.MPJTaskCalculator
rank, shuffle, size
 
Constructor Summary
MPJHazardCurveDriver(org.apache.commons.cli.CommandLine cmd, String[] args)
           
 
Method Summary
 void calculateBatch(int[] batch)
           
static org.apache.commons.cli.Options createOptions()
           
protected  void doFinalAssembly()
           
 int getNumTasks()
           
static void main(String[] args)
           
 
Methods inherited from class org.opensha.commons.hpc.mpj.taskDispatch.MPJTaskCalculator
abortAndExit, abortAndExit, abortAndExit, debug, debug, finalizeMPJ, getNumThreads, initMPJ, parse, run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TAG_READY_FOR_BATCH

protected static final int TAG_READY_FOR_BATCH
See Also:
Constant Field Values

TAG_NEW_BATCH_LENGH

protected static final int TAG_NEW_BATCH_LENGH
See Also:
Constant Field Values

TAG_NEW_BATCH

protected static final int TAG_NEW_BATCH
See Also:
Constant Field Values

D

public static final boolean D
See Also:
Constant Field Values

df

protected static final SimpleDateFormat df
Constructor Detail

MPJHazardCurveDriver

public MPJHazardCurveDriver(org.apache.commons.cli.CommandLine cmd,
                            String[] args)
                     throws IOException,
                            DocumentException,
                            InvocationTargetException
Throws:
IOException
DocumentException
InvocationTargetException
Method Detail

getNumTasks

public int getNumTasks()
Specified by:
getNumTasks in class MPJTaskCalculator

calculateBatch

public void calculateBatch(int[] batch)
                    throws Exception,
                           InterruptedException
Specified by:
calculateBatch in class MPJTaskCalculator
Throws:
Exception
InterruptedException

createOptions

public static org.apache.commons.cli.Options createOptions()

main

public static void main(String[] args)

doFinalAssembly

protected void doFinalAssembly()
                        throws Exception
Specified by:
doFinalAssembly in class MPJTaskCalculator
Throws:
Exception