|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectiterator.AbstractIterator
util.CommandLineRunner
util.PanairRunnerShevell
public class PanairRunnerShevell
Extends PanairRunnerLinux to run on shevell, which runs
ROCKS Linux and the job scheduler PBS, using the command qsub.
| Field Summary | |
|---|---|
protected java.lang.String |
statusString
|
| Fields inherited from class util.CommandLineRunner |
|---|
commandLine, DEFAULT_POLL_INTERVAL, DEFAULT_RUN_COMMAND, DEFAULT_SCRATCH_DIR, DEFAULT_STATUS_COMMAND, DEFAULT_TIMEOUT_INTERVAL, statArgument, timeElapsed |
| Fields inherited from class iterator.AbstractIterator |
|---|
diagnosticString, iter |
| Constructor Summary | |
|---|---|
PanairRunnerShevell()
|
|
| Method Summary | |
|---|---|
boolean |
isTerminated()
Returns true after a timeout. |
static void |
main(java.lang.String[] args)
Runs PANAIR interpreting the first argument as an input filename. |
static double |
readDrag(java.lang.String fileName)
Reads the drag value from the given PANAIR output file. |
static double[] |
readForces(java.lang.String fileName)
|
static void |
removePanairInputFile(java.lang.String panairInputFilename)
Deletes the specified PANAIR input file. |
void |
run(java.lang.String arg)
Runs PANAIR on the specified input file. |
void |
singleIteration()
Sleeps for a designated sleep interval. |
| Methods inherited from class util.CommandLineRunner |
|---|
getArgList, getPollInterval, getRunCommand, getScratchDir, getStatusCommand, getTimeoutInterval, init, isInline, iterate, run, run, setArgList, setInline, setPollInterval, setRunCommand, setScratchDir, setStatusCommand, setTimeoutInterval, updateDiagnostics |
| Methods inherited from class iterator.AbstractIterator |
|---|
isVerbose, printDiagnostics, setVerbose |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String statusString
| Constructor Detail |
|---|
public PanairRunnerShevell()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
args - the list of arguments.
public static double readDrag(java.lang.String fileName)
throws java.io.IOException,
java.io.FileNotFoundException,
Exceptions.ComputationException
fileName - the given PANAIR output file.
java.io.IOException - if IO error in file read.
java.io.FileNotFoundException - if the given output file does not exist.
Exceptions.ComputationException - if PANAIR did not compute a drag value for some reason, or if
there was a negative drag value.
public static double[] readForces(java.lang.String fileName)
throws java.io.IOException,
java.io.FileNotFoundException,
Exceptions.ComputationException
java.io.IOException
java.io.FileNotFoundException
Exceptions.ComputationExceptionpublic static void removePanairInputFile(java.lang.String panairInputFilename)
panairInputFilename - the given input file.public void singleIteration()
CommandLineRunner
singleIteration in interface IterablesingleIteration in class CommandLineRunnerIterable.singleIteration()public boolean isTerminated()
CommandLineRunnertrue after a timeout.
isTerminated in interface IterableisTerminated in class CommandLineRunnertrue when done.Iterable.isTerminated()public void run(java.lang.String arg)
cleanpan, which must be in the PATH. Then calls panair and writes
the input filename to the output stream of the process. Finally, calls
cleanpan again.
run in class CommandLineRunnerarg - the name of the given input file.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||