Package edu.sc.seis.TauP.cmdline
Class TauP_Tool
java.lang.Object
edu.sc.seis.TauP.cmdline.TauP_Tool
- Direct Known Subclasses:
TauP_AbstractPhaseTool,TauP_Create,TauP_DistAz,TauP_ReflTransPlot,TauP_Table,TauP_VelocityDison,TauP_VelocityMerge,TauP_VelocityPlot,TauP_Version,TauP_WebServe
Base class for tools within the TauP Toolkit.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncall()Computes a result, or throws an exception if unable to do so.static Propertiesabstract voiddestroy()abstract Stringabstract voidinit()booleanisDEBUG()booleanvoidsetDEBUG(boolean debug) Turns on debugging output.voidsetOutFileBase(String outFileBase) voidsetOutFileExtension(String outFileExtension) voidsetOutputFormat(String val) usually one of TEXT or JSON.voidsetToolPropsFilename(String filename) voidsetVerbose(boolean verbose) Turns on verbose output.abstract voidstart()static StringtoolNameFromClass(Class toolClass) abstract void
-
Field Details
-
toolProps
-
abstractOutputTypeArgs
-
OPTIONS_HEADING
- See Also:
-
ABREV_SYNOPSIS
public static final boolean ABREV_SYNOPSIS- See Also:
-
-
Constructor Details
-
TauP_Tool
-
-
Method Details
-
call
Computes a result, or throws an exception if unable to do so. -
setDEBUG
public void setDEBUG(boolean debug) Turns on debugging output.- Parameters:
debug- on or off
-
isDEBUG
public boolean isDEBUG() -
setVerbose
public void setVerbose(boolean verbose) Turns on verbose output.- Parameters:
verbose- on or off
-
isVerbose
public boolean isVerbose() -
getCmdLineArgs
-
configDefaults
-
getOutputFormat
-
setOutputFormat
usually one of TEXT or JSON. Subclasses may add additional types, for example CSV, GMT or SVG.- Parameters:
val- output format for results
-
setOutFileBase
-
getOutFileExtension
-
setOutFileExtension
-
setToolPropsFilename
- Throws:
IOException
-
init
- Throws:
TauPException
-
start
- Throws:
IOExceptionTauPException
-
destroy
- Throws:
TauPException
-
toolNameFromClass
-
validateArguments
- Throws:
TauPException
-