public class ConstantDataSource extends Object implements EnvironmentDataSource
EnvironmentDataSource.LatitudeLongitudeRectangle| Modifier and Type | Field and Description |
|---|---|
static double |
METERS_PER_NAUTMILE |
static double |
SECS_PER_HOUR |
AIR, AIR_EW, AIR_NS, AIR_PRESS, AIR_TEMP, AIR_UD, CURRENT, CURRENT_EW, CURRENT_NS, CURRENT_UD, DENS_ANOM, EW, NS, SALINITY, SEASTATE, SURF_ELEV, UD, WATER_TEMP| Constructor and Description |
|---|
ConstantDataSource(EnvironConstantsDialog.ConstantValues values) |
| Modifier and Type | Method and Description |
|---|---|
protected double |
getAirPressure(double lat,
double lon,
double depthAltitude) |
protected double |
getAirTemperature(double lat,
double lon,
double depthAltitude) |
EnvironmentDataSource.LatitudeLongitudeRectangle[] |
getCoverage()
Get lat/lon coverage rectangle(s)
|
String |
getDescription() |
int |
getParameterMask()
Return the parameters which this source can/is-instructed-to provide
|
double |
getVariable(int var,
double lat,
double lon,
double depth,
Date date)
Get environtal parameter at specified location and date
|
double |
getVariable(int var,
double lat,
double lon,
double depth,
long time)
Get environtal parameter at specified location and date
|
double[] |
getVariableAr(int var,
double lat,
double lon,
double depth,
Date date)
Get environtal parameter array at specified location and date.
|
double[] |
getVariableAr(int var,
double lat,
double lon,
double depth,
long time)
Get environtal parameter array at specified location and date.
|
void |
setDescription(String s)
Add a description string tag to this data source
|
void |
setParamMask(int mask)
Set the parameter which this source can/is-instructed-to provide
|
public static final double METERS_PER_NAUTMILE
public static final double SECS_PER_HOUR
public ConstantDataSource(EnvironConstantsDialog.ConstantValues values)
public EnvironmentDataSource.LatitudeLongitudeRectangle[] getCoverage()
getCoverage in interface EnvironmentDataSourcepublic int getParameterMask()
getParameterMask in interface EnvironmentDataSourcepublic void setParamMask(int mask)
setParamMask in interface EnvironmentDataSourcepublic String getDescription()
getDescription in interface EnvironmentDataSourcepublic void setDescription(String s)
setDescription in interface EnvironmentDataSources - public double getVariable(int var,
double lat,
double lon,
double depth,
Date date)
throws EnviroException
getVariable in interface EnvironmentDataSourcevar - parameter enumlat - latitude (dec deg)lon - longitude (dec deg)depth - vertical postion (meters)date - simulation todEnviroExceptionpublic double getVariable(int var,
double lat,
double lon,
double depth,
long time)
throws EnviroException
getVariable in interface EnvironmentDataSourcevar - parameter enumlat - latitude (dec deg)lon - longitude (dec deg)depth - vertical postion (meters)time - simulation relative timeEnviroExceptionpublic double[] getVariableAr(int var,
double lat,
double lon,
double depth,
Date date)
throws EnviroException
getVariableAr in interface EnvironmentDataSourcevar - parameter enumlat - latitude (dec deg)lon - longitude (dec deg)depth - vertical postion (meters)date - simulation todEnviroExceptionpublic double[] getVariableAr(int var,
double lat,
double lon,
double depth,
long time)
throws EnviroException
getVariableAr in interface EnvironmentDataSourcevar - parameter enumlat - latitude (dec deg)lon - longitude (dec deg)depth - vertical postion (meters)time - simulation relative timeEnviroExceptionprotected double getAirTemperature(double lat,
double lon,
double depthAltitude)
throws EnviroException
EnviroExceptionprotected double getAirPressure(double lat,
double lon,
double depthAltitude)
throws EnviroException
EnviroException