public class SvmProperties extends Object
| Constructor and Description |
|---|
SvmProperties()
Standard constructor
|
| Modifier and Type | Method and Description |
|---|---|
List<SvmFileSpecification> |
getBoundarySpecifications()
Get a list of the SVM file specifications for teh polygon bounding
constraints of the body of water.
|
double |
getGridCellSize()
Get the grid cell size, if provided.
|
File |
getGridFile()
Get the path to a file for writing an output ASC file giving an
interpolated grid of water bottom elevations.
|
File |
getInputFolder()
Gets the input folder specification from the properties;
if the properties do not contain a key/value for inputFolder,
a null is returned.
|
File |
getOutputFolder()
Gets the output folder specification from the properties; if the properties
do not contain a key/value for outputFolder, a null is returned.
|
File |
getReportFile()
Get the path to a file for writing an output report giving a record of the
computation parameters and results used for running the Simple Volumetric
Model.
|
List<SvmFileSpecification> |
getSampleSpecifications()
Get a list of the SVM file specifications for input samples.
|
double |
getShorelineReferenceElevation()
Get the shoreline reference elevation, if provided.
|
List<SvmFileSpecification> |
getSupplementSpecifications()
Get a list of the SVM file specifications for supplemental samples.
|
File |
getTableFile()
Get the path to a file for writing an output table giving volume and
elevation at fixed intervals (specified by getTableInterval()).
|
double |
getTableInterval()
Get the interval for computing a series of surface elevation values to be
used for modeling.
|
SvmUnitSpecification |
getUnitOfArea()
Get the a description and potential conversion factor unit to be used for
specifying surface area.
|
SvmUnitSpecification |
getUnitOfDistance()
Get the a description and potential conversion factor unit to be used for
specifying horizontal and vertical distances.
|
SvmUnitSpecification |
getUnitOfVolume()
Get the a description and potential conversion factor unit to be used for
specifying volume.
|
static int |
indexArg(String[] args,
String target,
boolean valueRequired)
Checks to see if an argument list includes the specified target and
returns its index within the argument array.
|
boolean |
isFlatFixerEnabled()
Indicates whether the near-shore, flat-triangle remediation is enabled.
|
boolean |
isSoundingSpacingEnabled()
Indicates whether the computation of sounding spacing is enabled.
|
void |
load(File file)
Loads a properties instance using values and paths specified in the
indicated file.
|
static SvmProperties |
load(String[] args)
Loads a properties instance using values and paths specified through the
command-line arguments.
|
void |
writeSummary(PrintStream ps)
Writes summary data to the specified PrintStream instance.
|
public static int indexArg(String[] args, String target, boolean valueRequired)
args - a valid list of stringstarget - the desired target stringvalueRequired - indicates that the target argument requires
a value specification.public static SvmProperties load(String[] args) throws IOException
args - a valid, potentially zero-length array of stringsIOException - in the event of a unrecoverable I/O condition.public void load(File file) throws IOException
file - a valid file instanceIOException - in the event of an unrecoverable I/O condition.public List<SvmFileSpecification> getSampleSpecifications()
public List<SvmFileSpecification> getSupplementSpecifications()
public List<SvmFileSpecification> getBoundarySpecifications()
public SvmUnitSpecification getUnitOfDistance()
public File getInputFolder()
public File getOutputFolder()
public File getReportFile()
public File getTableFile()
public double getTableInterval()
public boolean isFlatFixerEnabled()
public boolean isSoundingSpacingEnabled()
public void writeSummary(PrintStream ps)
ps - a valid instancepublic SvmUnitSpecification getUnitOfArea()
public SvmUnitSpecification getUnitOfVolume()
public double getShorelineReferenceElevation()
public double getGridCellSize()
public File getGridFile()
Copyright © 2019. All rights reserved.