|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.intamap.InterpolateRequest
public class InterpolateRequest
Models a request sent to the INTAMAP interpolation service.
It is possible to request either statistic predictions or realisations, the
latter of which will only be requested if requestRealisations()
returns true.
| Constructor Summary | |
|---|---|
InterpolateRequest(ObservationCollection observationCollection)
Creates a new interpolate request with the given observation collection. |
|
InterpolateRequest(String sosURL,
String sosRequest)
Creates a new interpolate request with the given SOS details from which the obervations to interpolate will be retrieved. |
|
| Method Summary | |
|---|---|
void |
addStatisticToPredict(String type)
Adds a statistic to predict. |
void |
addStatisticToPredict(String type,
double value)
Adds a statistic to predict. |
void |
clearStatisticsToPredict()
Clears the list of statistics to predict. |
boolean |
getBiasCorrection()
Returns whether bias correction will be applied to the observations. |
com.vividsolutions.jts.geom.Geometry |
getDomain()
Returns the prediction domain. |
int |
getMaximumTime()
Returns the maximum time for execution. |
String |
getMethodName()
Returns the name of the interpolation method to execute. |
Map<String,String> |
getMethodParameters()
Returns the method parameters. |
int |
getNumberOfPredictions()
Returns the number of prediction locations. |
int |
getNumberOfRealisations()
Returns the number of realisations to generate at each location. |
ObservationCollection |
getObservationCollection()
Returns the observation collection to be interpolated. |
boolean |
getOutlierDetection()
Returns whether basic outlier detection will be performed on the data. |
String |
getSosRequest()
Returns the POST payload for a SOS request to be sent to the URL given by getSosURL(). |
String |
getSosURL()
Returns the URL pointing towards a Sensor Observation Service to which the request given by getSosRequest() will be sent. |
List<org.uncertml.statistics.Statistic> |
getStatisticsToPredict()
Returns the list of statistics to predict. |
boolean |
getTucAnisotropy()
Returns whether the TUC method for anisotropy detection will be used. |
boolean |
requestRealisations()
Returns if realisations will be generated in this request. |
void |
requestRealisations(boolean requestRealisations)
Sets whether realisations will be generated in this request. |
void |
setBiasCorrection(boolean biasCorrection)
Sets whether bias correction will be applied to the observations. |
void |
setDomain(com.vividsolutions.jts.geom.Geometry domain)
Sets the prediction domain. |
void |
setMaximumTime(int maximumTime)
Sets the maximum time for execution. |
void |
setMethodName(String methodName)
Sets the name of the interpolation method you wish to execute. |
void |
setNumberOfPredictions(int numberOfPredictions)
Sets the number of prediction locations. |
void |
setNumberOfRealisations(int numberOfRealisations)
Sets the number of realisations to generate at each location. |
void |
setObservationCollection(ObservationCollection observationCollection)
Sets the observation collection to be interpolated. |
void |
setOutlierDetection(boolean outlierDetection)
Sets whether basic outlier detection will be performed on the data. |
void |
setSos(String sosURL,
String sosRequest)
Sets the SOS details from which the obervations to interpolate will be retrieved. |
void |
setTucAnisotropy(boolean tucAnisotropy)
Sets whether the TUC method for anisotropy detection will be used. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InterpolateRequest(ObservationCollection observationCollection)
observationCollection - the observation collection
public InterpolateRequest(String sosURL,
String sosRequest)
sosURL - an URL pointing towards a fully functioning Sensor Observation ServicesosRequest - the POST payload for a SOS requestsetSos(String, String)| Method Detail |
|---|
public boolean getBiasCorrection()
true if bias correction be applied, false otherwisesetBiasCorrection(boolean)public com.vividsolutions.jts.geom.Geometry getDomain()
setDomain(Geometry)public int getMaximumTime()
setMaximumTime(int)public String getMethodName()
setMethodName(String)public Map<String,String> getMethodParameters()
public int getNumberOfPredictions()
setNumberOfPredictions(int)public int getNumberOfRealisations()
requestRealisations() is
true.
setNumberOfRealisations(int)public ObservationCollection getObservationCollection()
public boolean getOutlierDetection()
false.
true if basic outlier detection will be performed on the data, false otherwisesetOutlierDetection(boolean)public String getSosRequest()
getSosURL().
setSos(String, String)public String getSosURL()
getSosRequest() will be sent.
public List<org.uncertml.statistics.Statistic> getStatisticsToPredict()
requestRealisations() is
false (default).
public void addStatisticToPredict(String type)
addStatisticToPredict(String, double).
Statistic objects can be explicitly
added to the request using getStatisticsToPredict().
type - the type of statistic
InvalidParameterException - if the given type is invalid
public void addStatisticToPredict(String type,
double value)
addStatisticToPredict(String).
Statistic objects can be explicitly
added to the request using getStatisticsToPredict().
type - the type of statisticvalue - the value
InvalidParameterException - if the given type is invalidpublic void clearStatisticsToPredict()
public boolean getTucAnisotropy()
true if the TUC method for anisotropy detection will be used, false otherwisepublic boolean requestRealisations()
true if realisations will be generated, false if notrequestRealisations(boolean)public void requestRealisations(boolean requestRealisations)
requestRealisations - whether realisations will be generatedpublic void setBiasCorrection(boolean biasCorrection)
false.
biasCorrection - whether bias correction will be appliedpublic void setDomain(com.vividsolutions.jts.geom.Geometry domain)
null by
default (i.e. let the service generate a domain).
domain - the prediction domainpublic void setMaximumTime(int maximumTime)
-1 (i.e. infinite).
maximumTime - the maximum time for execution (in seconds)public void setMethodName(String methodName)
"automatic". "automap",
"copula", and "psgp" are also valid.
methodName - the interpolation method namepublic void setNumberOfPredictions(int numberOfPredictions)
-1 which will let the interpolation service
decide (currently 10000).
numberOfPredictions - the number of prediction locationspublic void setNumberOfRealisations(int numberOfRealisations)
requestRealisations() is
true.
numberOfRealisations - the number of realisationspublic void setObservationCollection(ObservationCollection observationCollection)
observationCollection - the observation collectionpublic void setOutlierDetection(boolean outlierDetection)
false.
outlierDetection - whether basic outlier detection will be performed
public void setSos(String sosURL,
String sosRequest)
null (i.e. do not
retrieve observations from an SOS).
sosURL - an URL pointing towards a fully functioning Sensor Observation ServicesosRequest - the POST payload for a SOS requestpublic void setTucAnisotropy(boolean tucAnisotropy)
true.
tucAnisotropy - whether the TUC method for anisotropy detection will be used
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||