public class OmObservation extends AbstractFeature implements Serializable
Modifier and Type | Field and Description |
---|---|
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 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 |
cloneTemplate() |
private TVPValue |
convertSingleValueToMultiValue(SingleObservationValue<?> singleValue)
Convert
SingleObservationValue to TVPValue |
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
|
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 |
isSetObservationID()
Check whether observation id is set
|
boolean |
isSetParameter()
Check whether parameter is set
|
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 |
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(OmObservation sosObservation)
Merge observation values with passed observation values
|
void |
mergeWithObservation(OmObservation sosObservation)
Merge this observation with passed observation
|
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
|
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
|
addName, addName, equals, getDescription, getFirstName, getGmlId, getIdentifier, getName, hashCode, isReferenced, isSetDescription, isSetGmlID, isSetIdentifier, isSetNames, setDescription, setGmlId, setIdentifier, setIdentifier, 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
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 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 ObservationValue<?> getValue()
public void setValue(ObservationValue<?> value)
value
- the values to setpublic void mergeWithObservation(OmObservation sosObservation)
sosObservation
- Observation to mergeprivate void setObservationTypeToSweArrayObservation()
OmConstants.OBS_TYPE_SWE_ARRAY_OBSERVATION
private void mergeResultTimes(OmObservation sosObservation)
sosObservation
- Observation to mergeprivate void mergeValues(OmObservation sosObservation)
sosObservation
- 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 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()
Copyright © 2012-2014 52north.org. All Rights Reserved.