Package org.n52.shetland.ogc.sos.gda
Class GetDataAvailabilityResponse.DataAvailability
- java.lang.Object
-
- org.n52.shetland.ogc.sos.gda.GetDataAvailabilityResponse.DataAvailability
-
- All Implemented Interfaces:
Copyable<GetDataAvailabilityResponse.DataAvailability>
- Enclosing class:
- GetDataAvailabilityResponse
public static class GetDataAvailabilityResponse.DataAvailability extends Object implements Copyable<GetDataAvailabilityResponse.DataAvailability>
Describes the availability of observation with a specified combination offeatureOfInterest,observedPropertyandprocedure.
-
-
Constructor Summary
Constructors Constructor Description DataAvailability(ReferenceType procedure, ReferenceType observedProperty, ReferenceType featureOfInterest, ReferenceType offering, TimePeriod phenomenonTime)Creates a newDataAvailability.DataAvailability(ReferenceType procedure, ReferenceType observedProperty, ReferenceType featureOfInterest, ReferenceType offering, TimePeriod phenomenonTime, long valueCount)Creates a newDataAvailability.
-
Method Summary
-
-
-
Constructor Detail
-
DataAvailability
public DataAvailability(ReferenceType procedure, ReferenceType observedProperty, ReferenceType featureOfInterest, ReferenceType offering, TimePeriod phenomenonTime)
Creates a newDataAvailability.- Parameters:
procedure- theprocedureobservedProperty- theobservedPropertyfeatureOfInterest- thefeatureOfInterestoffering- theofferingphenomenonTime- thephenomenonTimefor which data is available.
-
DataAvailability
public DataAvailability(ReferenceType procedure, ReferenceType observedProperty, ReferenceType featureOfInterest, ReferenceType offering, TimePeriod phenomenonTime, long valueCount)
Creates a newDataAvailability.- Parameters:
procedure- theprocedureobservedProperty- theobservedPropertyfeatureOfInterest- thefeatureOfInterestoffering- theofferingphenomenonTime- thephenomenonTimefor which data is available.valueCount- thevalueCountfor this combination.
-
-
Method Detail
-
getFeatureOfInterest
public ReferenceType getFeatureOfInterest()
- Returns:
- the
featureOfInterest
-
getObservedProperty
public ReferenceType getObservedProperty()
- Returns:
- the
observedProperty
-
getProcedure
public ReferenceType getProcedure()
- Returns:
- the
procedure
-
getPhenomenonTime
public TimePeriod getPhenomenonTime()
- Returns:
- the
phenomenonTimefor which data is available.
-
getCount
public long getCount()
- Returns:
- the
countfor this combination.
-
setCount
public GetDataAvailabilityResponse.DataAvailability setCount(long count)
Set thecountfor this combination- Parameters:
count- the count- Returns:
- this.
-
isSetCount
public boolean isSetCount()
-
setResultTimes
public GetDataAvailabilityResponse.DataAvailability setResultTimes(Collection<TimeInstant> resultTimes)
-
addResultTime
public GetDataAvailabilityResponse.DataAvailability addResultTime(TimeInstant resultTime)
-
getResultTimes
public List<TimeInstant> getResultTimes()
-
isSetResultTime
public boolean isSetResultTime()
-
getOffering
public ReferenceType getOffering()
- Returns:
- the offering
-
setOffering
public void setOffering(ReferenceType offering)
- Parameters:
offering- the offering to set
-
getOfferingString
public String getOfferingString()
-
isSetOffering
public boolean isSetOffering()
-
getFormatDescriptor
public GetDataAvailabilityResponse.FormatDescriptor getFormatDescriptor()
- Returns:
- the observationTypes
-
setFormatDescriptor
public void setFormatDescriptor(GetDataAvailabilityResponse.FormatDescriptor formatDescriptor)
-
isSetFormatDescriptors
public boolean isSetFormatDescriptors()
-
getMetadata
public Map<String,NamedValue<?>> getMetadata()
- Returns:
- the metadata
-
setMetadata
public GetDataAvailabilityResponse.DataAvailability setMetadata(Map<String,NamedValue<?>> metadata)
- Parameters:
metadata- the metadata to set- Returns:
- this
-
addMetadata
public GetDataAvailabilityResponse.DataAvailability addMetadata(String key, NamedValue<?> metadata)
- Parameters:
key- the key of the metadatametadata- the metadata to add- Returns:
- this
-
isSetMetadata
public boolean isSetMetadata()
-
sameConstellation
public boolean sameConstellation(Object o)
-
sameConstellationHashCode
public int sameConstellationHashCode()
-
copy
public GetDataAvailabilityResponse.DataAvailability copy()
- Specified by:
copyin interfaceCopyable<GetDataAvailabilityResponse.DataAvailability>
-
merge
public boolean merge(GetDataAvailabilityResponse.DataAvailability toMerge, boolean differentOfferings)
-
-