org.opensha.commons.hpc.pbs
Class BatchScriptWriter

java.lang.Object
  extended by org.opensha.commons.hpc.pbs.BatchScriptWriter
Direct Known Subclasses:
EpicenterScriptWriter, RangerScriptWriter, StampedeScriptWriter, USC_HPCC_ScriptWriter

public abstract class BatchScriptWriter
extends Object


Constructor Summary
BatchScriptWriter()
           
 
Method Summary
 List<String> buildScript(List<String> script, int mins, int nodes, int ppn, String queue)
           
abstract  List<String> getBatchHeader(int mins, int nodes, int ppn, String queue)
           
 void writeScript(File file, List<String> script)
           
 void writeScript(File file, List<String> script, int mins, int nodes, int ppn, String queue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BatchScriptWriter

public BatchScriptWriter()
Method Detail

getBatchHeader

public abstract List<String> getBatchHeader(int mins,
                                            int nodes,
                                            int ppn,
                                            String queue)

buildScript

public List<String> buildScript(List<String> script,
                                int mins,
                                int nodes,
                                int ppn,
                                String queue)

writeScript

public void writeScript(File file,
                        List<String> script,
                        int mins,
                        int nodes,
                        int ppn,
                        String queue)
                 throws IOException
Throws:
IOException

writeScript

public void writeScript(File file,
                        List<String> script)
                 throws IOException
Throws:
IOException