001    /*
002     *    GeoAPI - Java interfaces for OGC/ISO standards
003     *    http://www.geoapi.org
004     *
005     *    Copyright (C) 2009-2012 Open Geospatial Consortium, Inc.
006     *    All Rights Reserved. http://www.opengeospatial.org/ogc/legal
007     *
008     *    Permission to use, copy, and modify this software and its documentation, with
009     *    or without modification, for any purpose and without fee or royalty is hereby
010     *    granted, provided that you include the following on ALL copies of the software
011     *    and documentation or portions thereof, including modifications, that you make:
012     *
013     *    1. The full text of this NOTICE in a location viewable to users of the
014     *       redistributed or derivative work.
015     *    2. Notice of any changes or modifications to the OGC files, including the
016     *       date changes were made.
017     *
018     *    THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE
019     *    NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
020     *    TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT
021     *    THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY
022     *    PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
023     *
024     *    COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR
025     *    CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION.
026     *
027     *    The name and trademarks of copyright holders may NOT be used in advertising or
028     *    publicity pertaining to the software without specific, written prior permission.
029     *    Title to copyright in this software and any associated documentation will at all
030     *    times remain with copyright holders.
031     */
032    package org.opengis.observation.sampling;
033    
034    import java.util.List;
035    
036    import org.opengis.observation.AnyFeature;
037    import org.opengis.observation.Observation;
038    import org.opengis.annotation.UML;
039    
040    import static org.opengis.annotation.Specification.*;
041    import static org.opengis.annotation.Obligation.*;
042    
043    /**
044     * A SamplingFeature is distinguished from typical domain feature types in that it has a set
045     * of navigable associations with Observations.
046     *
047     * @version <A HREF="http://www.opengeospatial.org/standards/om">Implementation specification 1.0</A>
048     * @author Open Geospatial Consortium
049     * @author Guilhem Legal (Geomatys)
050     * @since GeoAPI 2.3
051     */
052    @UML(identifier="samplingFeature", specification=OGC_07022)
053    public interface SamplingFeature extends AnyFeature{
054    
055        /**
056         * Sampling features are frequently related to each other, as parts of complexes, networks, through sub-sampling, etc.
057         *  This is supported by the relatedSamplingFeature association with a SamplingFeatureRelation association class, which carries a source, target and role.
058         */
059        @UML(identifier="relatedSamplingFeature", obligation=MANDATORY, specification=OGC_07022)
060        List<SamplingFeatureRelation> getRelatedSamplingFeature();
061    
062        /**
063         * A common requirement for sampling features is an indication of the SurveyProcedure
064         * that provides the surveyDetails related to determination of its location and shape.
065         */
066        @UML(identifier="surveyDetails", obligation=OPTIONAL, specification=OGC_07022)
067        SurveyProcedure getSurveyDetail();
068    
069        /**
070         * A SamplingFeature must be associated with one or more other features through an association role sampledFeature.
071         * This association records the intention of the sample design.
072         * The target of this association will usually be a domain feature.
073         */
074        @UML(identifier="sampleFeature", obligation=MANDATORY, specification=OGC_07022)
075        List<AnyFeature> getSampledFeature();
076    
077        /**
078         * A SamplingFeature is distinguished from typical domain feature types in that it has a set of [0..*] navigable associations with Observations, given the rolename relatedObservation.
079         * This complements the association role "featureOfInterest" which is constrained to point back from the Observation to the Sampling-Feature.
080         * The usual requirement of an Observation feature-of-interest is that its type has a property matching the observed-property on the Observation.
081         * In the case of Sampling-features, the topology of the model and navigability of the relatedObservation role means that this requirement is satisfied automatically:
082         * a property of the sampling-feature is implied by the observedProperty of a related observation.
083         * This effectively provides an unlimited set of "soft-typed" properties on a Sampling Feature.
084         */
085        @UML(identifier="srelatedObservation", obligation=MANDATORY, specification=OGC_07022)
086        List<Observation> getRelatedObservation();
087        
088    }