public class OmObservation extends AbstractFeature implements Serializable
Modifier and Type | Field and Description |
---|---|
private String |
additionalMergeIndicator |
private String |
decimalSeparator
separator of decimal values, which are contained in the resulte element
|
private String |
noDataValue
no data value for the values contained in the result element
|
private OmObservationConstellation |
observationConstellation
constellation of procedure, obervedProperty, offering and observationType
|
private String |
observationID
ID of this observation; in the standard 52n SOS PostgreSQL database, this
is implemented through a sequence type.
|
private Collection<NamedValue<?>> |
parameter
O&M parameter
|
private Set<OmResultQuality> |
qualityList
Measurment quality
|
private TimeInstant |
resultTime
result time of the observation
|
private String |
resultType
type of the value or the result the value points to
|
private static long |
serialVersionUID |
private String |
tokenSeparator
token separator for the value tuples contained in the result element of
the generic observation
|
private String |
tupleSeparator
separator of value tuples, which are contained in the resulte element
|
private TimePeriod |
validTime
valid time of the observation
|
private ObservationValue<?> |
value
Map with observation values for each obsservableProeprty
|
Constructor and Description |
---|
OmObservation()
constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addParameter(NamedValue<?> namedValue)
Add parameter
|
OmObservation |
addResultQuality(OmResultQuality qualityList) |
OmObservation |
addResultQuality(Set<OmResultQuality> qualityList) |
boolean |
checkForMerge(OmObservation observation) |
OmObservation |
cloneTemplate() |
private TVPValue |
convertSingleValueToMultiValue(SingleObservationValue<?> singleValue)
Convert
SingleObservationValue to TVPValue |
String |
getAdditionalMergeIndicator() |
String |
getDecimalSeparator()
Get decimal separator
|
String |
getGmlId()
Get GML id
|
String |
getNoDataValue()
Get noData value
|
OmObservationConstellation |
getObservationConstellation()
Get the observation constellation
|
String |
getObservationID()
Get observation ID
|
Collection<NamedValue<?>> |
getParameter()
Get parameter
|
Time |
getPhenomenonTime()
Get phenomenon time
|
Set<OmResultQuality> |
getResultQuality()
Get result quality
|
TimeInstant |
getResultTime()
Get result time
|
String |
getResultType()
Get result type
|
NamedValue<com.vividsolutions.jts.geom.Geometry> |
getSpatialFilteringProfileParameter()
Get spatial filtering profile parameter
|
String |
getTokenSeparator()
Get token separator
|
String |
getTupleSeparator()
Get tuple separator
|
TimePeriod |
getValidTime()
Get valid time
|
ObservationValue<?> |
getValue()
Get observation values
|
private boolean |
isSamplingGeometryParameter(NamedValue<?> namedValue)
Check whether sampling geometry for spatial filtering profile is set
|
boolean |
isSetAdditionalMergeIndicator() |
boolean |
isSetDecimalSeparator()
Check whether decimal separator is set
|
boolean |
isSetObservationID()
Check whether observation id is set
|
boolean |
isSetParameter()
Check whether parameter is set
|
boolean |
isSetPhenomenonTime() |
boolean |
isSetResultQuality() |
boolean |
isSetResultTime()
Check whether result time is set
|
boolean |
isSetResultType()
Check whether result type is set
|
boolean |
isSetSpatialFilteringProfileParameter()
Check whether spatial filtering profile parameter is set
|
boolean |
isSetTokenSeparator()
Check whether token separator is set
|
boolean |
isSetTupleSeparator()
Check whether tuple separator is set
|
boolean |
isSetValidTime()
Check whether valid time is set
|
boolean |
isSetValue() |
boolean |
isTemplateResultTime()
Check whether result time is template is set
|
private void |
mergeResultTimes(OmObservation sosObservation)
Merge result time with passed observation result time
|
private void |
mergeValues(ObservationValue<?> observationValue)
Merge observation values with passed observation values
|
void |
mergeWithObservation(ObservationValue<?> observationValue)
Merge this observation with passed observation
|
void |
mergeWithObservation(OmObservation sosObservation)
Merge this observation with passed observation
|
OmObservation |
setAdditionalMergeIndicator(String additionalMergeIndicator) |
void |
setDecimalSeparator(String decimalSeparator)
Set decimal separator
|
void |
setNoDataValue(String noDataValue)
Set noData value
|
void |
setObservationConstellation(OmObservationConstellation observationConstellation)
Set the observation constellation
|
void |
setObservationID(String observationID)
Set observation ID
|
private void |
setObservationTypeToSweArrayObservation()
Set the observation type to
OmConstants.OBS_TYPE_SWE_ARRAY_OBSERVATION |
void |
setParameter(Collection<NamedValue<?>> parameter)
Set parameter
|
OmObservation |
setResultQuality(Set<OmResultQuality> qualityList)
Set result quality
|
void |
setResultTime(TimeInstant resultTime)
Set result time
|
void |
setResultType(String resultType)
Set result type
|
void |
setTokenSeparator(String tokenSeparator)
Set token separator
|
void |
setTupleSeparator(String tupleSeparator)
Set tuple separator
|
void |
setValidTime(TimePeriod validTime)
Set valid time
|
void |
setValue(ObservationValue<?> value)
Set observation values
|
copyTo, getDefaultElementEncoding, isSetDefaultElementEncoding, setDefaultElementEncoding
addName, addName, addName, copyTo, equals, getDescription, getFirstName, getHumanReadableIdentifier, getHumanReadableIdentifierCodeWithAuthority, getIdentifier, getIdentifierCodeWithAuthority, getName, hashCode, isReferenced, isSetDescription, isSetGmlID, isSetHumanReadableIdentifier, isSetIdentifier, isSetName, setDescription, setGmlId, setHumanReadableIdentifier, setHumanReadableIdentifier, setHumanReadableIdentifierAsIdentifier, setIdentifier, setIdentifier, setName, setName
private static final long serialVersionUID
private String observationID
private TimeInstant resultTime
private TimePeriod validTime
private OmObservationConstellation observationConstellation
private String resultType
private Collection<NamedValue<?>> parameter
private ObservationValue<?> value
private String tokenSeparator
private String noDataValue
private String tupleSeparator
private String decimalSeparator
private Set<OmResultQuality> qualityList
private String additionalMergeIndicator
public OmObservationConstellation getObservationConstellation()
public void setObservationConstellation(OmObservationConstellation observationConstellation)
observationConstellation
- the observationConstellation to setpublic String getObservationID()
public void setObservationID(String observationID)
observationID
- the observationID to setpublic Time getPhenomenonTime()
public boolean isSetPhenomenonTime()
public TimeInstant getResultTime()
public void setResultTime(TimeInstant resultTime)
resultTime
- the resultTime to setpublic TimePeriod getValidTime()
public void setValidTime(TimePeriod validTime)
validTime
- the validTime to setpublic String getResultType()
public void setResultType(String resultType)
resultType
- the resultType to setpublic String getTokenSeparator()
public void setTokenSeparator(String tokenSeparator)
tokenSeparator
- the tokenSeparator to setpublic String getNoDataValue()
public void setNoDataValue(String noDataValue)
noDataValue
- the noDataValue to setpublic String getTupleSeparator()
public void setTupleSeparator(String tupleSeparator)
tupleSeparator
- the tupleSeparator to setpublic String getDecimalSeparator()
public void setDecimalSeparator(String decimalSeparator)
decimalSeparator
- the decimalSeparator to setpublic ObservationValue<?> getValue()
public void setValue(ObservationValue<?> value)
value
- the values to setpublic boolean isSetValue()
public void mergeWithObservation(OmObservation sosObservation)
sosObservation
- Observation to mergepublic void mergeWithObservation(ObservationValue<?> observationValue)
sosObservation
- Observation to mergeprivate void setObservationTypeToSweArrayObservation()
OmConstants.OBS_TYPE_SWE_ARRAY_OBSERVATION
private void mergeResultTimes(OmObservation sosObservation)
sosObservation
- Observation to mergeprivate void mergeValues(ObservationValue<?> observationValue)
observationValue
- Observation to mergeprivate TVPValue convertSingleValueToMultiValue(SingleObservationValue<?> singleValue)
SingleObservationValue
to TVPValue
singleValue
- Single observation valuepublic boolean isSetObservationID()
true
, if observation id is setpublic boolean isSetTupleSeparator()
true
, if tuple separator is setpublic boolean isSetTokenSeparator()
true
, if token separator is setpublic boolean isSetDecimalSeparator()
true
, if decimal separator is setpublic boolean isSetResultTime()
true
, if result time is setpublic boolean isTemplateResultTime()
true
, if result time is template is setpublic boolean isSetResultType()
true
, if result type is setpublic boolean isSetValidTime()
true
, if valid time is setpublic Collection<NamedValue<?>> getParameter()
public void setParameter(Collection<NamedValue<?>> parameter)
parameter
- the parameter to setpublic void addParameter(NamedValue<?> namedValue)
namedValue
- the namedValue to add to parameterpublic boolean isSetParameter()
true
, if parameter is setpublic boolean isSetSpatialFilteringProfileParameter()
true
, if spatial filtering profile parameter is setpublic NamedValue<com.vividsolutions.jts.geom.Geometry> getSpatialFilteringProfileParameter()
private boolean isSamplingGeometryParameter(NamedValue<?> namedValue)
true
, if sampling geometry for spatial filtering
profile is setpublic OmObservation cloneTemplate()
public String getGmlId()
AbstractGML
getGmlId
in class AbstractGML
public OmObservation setResultQuality(Set<OmResultQuality> qualityList)
qualityList
- Result quality to setpublic OmObservation addResultQuality(Set<OmResultQuality> qualityList)
public OmObservation addResultQuality(OmResultQuality qualityList)
public Set<OmResultQuality> getResultQuality()
public boolean isSetResultQuality()
public OmObservation setAdditionalMergeIndicator(String additionalMergeIndicator)
public String getAdditionalMergeIndicator()
public boolean isSetAdditionalMergeIndicator()
public boolean checkForMerge(OmObservation observation)
Copyright © 2012-2015 52north.org. All Rights Reserved.