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 of
featureOfInterest,
observedProperty and procedure .-
Constructor Summary
ConstructorsConstructorDescriptionDataAvailability(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
Modifier and TypeMethodDescriptionaddMetadata(String key, NamedValue<?> metadata) addResultTime(TimeInstant resultTime) copy()booleanlonggetCount()Map<String, NamedValue<?>> inthashCode()booleanbooleanbooleanbooleanbooleanbooleanmerge(GetDataAvailabilityResponse.DataAvailability toMerge, boolean differentOfferings) booleanintsetCount(long count) Set thecountfor this combinationvoidsetFormatDescriptor(GetDataAvailabilityResponse.FormatDescriptor formatDescriptor) setMetadata(Map<String, NamedValue<?>> metadata) voidsetOffering(ReferenceType offering) setResultTimes(Collection<TimeInstant> resultTimes)
-
Constructor Details
-
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 Details
-
getFeatureOfInterest
- Returns:
- the
featureOfInterest
-
getObservedProperty
- Returns:
- the
observedProperty
-
getProcedure
- Returns:
- the
procedure
-
getPhenomenonTime
- Returns:
- the
phenomenonTimefor which data is available.
-
getCount
public long getCount()- Returns:
- the
countfor this combination.
-
setCount
Set thecountfor this combination- Parameters:
count- the count- Returns:
- this.
-
isSetCount
public boolean isSetCount() -
setResultTimes
public GetDataAvailabilityResponse.DataAvailability setResultTimes(Collection<TimeInstant> resultTimes) -
addResultTime
-
getResultTimes
-
isSetResultTime
public boolean isSetResultTime() -
getOffering
- Returns:
- the offering
-
setOffering
- Parameters:
offering- the offering to set
-
getOfferingString
-
isSetOffering
public boolean isSetOffering() -
getFormatDescriptor
- Returns:
- the observationTypes
-
setFormatDescriptor
-
isSetFormatDescriptors
public boolean isSetFormatDescriptors() -
getMetadata
- Returns:
- the metadata
-
setMetadata
- Parameters:
metadata- the metadata to set- Returns:
- this
-
addMetadata
- Parameters:
key- the key of the metadatametadata- the metadata to add- Returns:
- this
-
isSetMetadata
public boolean isSetMetadata() -
equals
-
hashCode
public int hashCode() -
sameConstellation
-
sameConstellationHashCode
public int sameConstellationHashCode() -
copy
- Specified by:
copyin interfaceCopyable<GetDataAvailabilityResponse.DataAvailability>
-
merge
public boolean merge(GetDataAvailabilityResponse.DataAvailability toMerge, boolean differentOfferings)
-