All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.n52.io.response.sampling.SamplingOutput Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (C) 2013-2019 52°North Initiative for Geospatial Open Source
 * Software GmbH
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License version 2 as published
 * by the Free Software Foundation.
 *
 * If the program is linked with libraries which are licensed under one of
 * the following licenses, the combination of the program with the linked
 * library is not considered a "derivative work" of the program:
 *
 *     - Apache License, version 2.0
 *     - Apache Software License, version 1.0
 *     - GNU Lesser General Public License, version 3
 *     - Mozilla Public License, versions 1.0, 1.1 and 2.0
 *     - Common Development and Distribution License (CDDL), version 1.0
 *
 * Therefore the distribution of the program linked with libraries licensed
 * under the aforementioned licenses, is permitted by the copyright holders
 * if the distribution is compliant with both the GNU General Public License
 * version 2 and the aforementioned licenses.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
 * for more details.
 */
package org.n52.io.response.sampling;

import java.util.List;

import org.n52.io.response.AbstractOutput;
import org.n52.io.response.FeatureOutput;
import org.n52.io.response.OptionalOutput;
import org.n52.io.response.TimeOutput;
import org.n52.io.response.TimeOutputConverter;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;

public class SamplingOutput extends AbstractOutput {

    public static final String COLLECTION_PATH = "samplings";
    public static final String COMMENT = "comment";
    public static final String MONITORING_PROGRAM = "measuringProgram";
    public static final String SAMPLER = "sampler";
    public static final String SAMPLING_METHOD = "samplingMehtod";
    public static final String ENVIRONMENTAL_CONDITIONS = "environmentalConditions";
    public static final String SAMPLING_TIME_START = "samplingTimeStart";
    public static final String SAMPLING_TIME_END = "samplingTimeEnd";
    public static final String FEATURE = "feature";
    public static final String SAMPLING_OBSERVATIONS = "samplingObservations";

    private OptionalOutput comment;
    private OptionalOutput measuringProgram;
    private OptionalOutput sampler;
    private OptionalOutput samplingMethod;
    private OptionalOutput environmentalConditions;
    private OptionalOutput samplingTimeStart;
    private OptionalOutput samplingTimeEnd;
    private OptionalOutput feature;

    private OptionalOutput> samplingObservations;

    @Override
    protected String getCollectionName() {
        return COLLECTION_PATH;
    }

    /**
     * @return the comment
     */
    public String getComment() {
        return getIfSerialized(comment);
    }

    /**
     * @param comment the comment to set
     */
    public void setComment(OptionalOutput comment) {
        this.comment = comment;
    }

    /**
     * @return the measuringProgram
     */
    public MeasuringProgramOutput getMeasuringProgram() {
        return getIfSerialized(measuringProgram);
    }

    /**
     * @param measuringProgram the measuringProgram to set
     */
    public void setMeasuringProgram(OptionalOutput measuringProgram) {
        this.measuringProgram = measuringProgram;
    }

    /**
     * @return the sampler
     */
    public SamplerOutput getSampler() {
        return getIfSerialized(sampler);
    }

    /**
     * @param sampler the sampler to set
     */
    public void setSampler(OptionalOutput sampler) {
        this.sampler = sampler;
    }

    /**
     * @return the samplingMethod
     */
    public String getSamplingMethod() {
        return getIfSerialized(samplingMethod);
    }

    /**
     * @param samplingMethod the samplingMethod to set
     */
    public void setSamplingMethod(OptionalOutput samplingMethod) {
        this.samplingMethod = samplingMethod;
    }

    /**
     * @return the environmentalConditions
     */
    public String getEnvironmentalConditions() {
        return getIfSerialized(environmentalConditions);
    }

    /**
     * @param environmentalConditions the environmentalConditions to set
     */
    public void setEnvironmentalConditions(OptionalOutput environmentalConditions) {
        this.environmentalConditions = environmentalConditions;
    }

    /**
     * @return the samplingTimeStart
     */
    @JsonSerialize(converter = TimeOutputConverter.class)
    public TimeOutput getSamplingTimeStart() {
        return getIfSerialized(samplingTimeStart);
    }

    /**
     * @param samplingTimeStart the samplingTimeStart to set
     */
    public void setSamplingTimeStart(OptionalOutput samplingTimeStart) {
        this.samplingTimeStart = samplingTimeStart;
    }

    /**
     * @return the samplingTimeEnd
     */
    @JsonSerialize(converter = TimeOutputConverter.class)
    public TimeOutput getSamplingTimeEnd() {
        return getIfSerialized(samplingTimeEnd);
    }

    /**
     * @param samplingTimeEnd the samplingTimeEnd to set
     */
    public void setSamplingTimeEnd(OptionalOutput samplingTimeEnd) {
        this.samplingTimeEnd = samplingTimeEnd;
    }

    public FeatureOutput getFeature() {
        return getIfSerialized(feature);
    }

    public void setFeature(OptionalOutput feature) {
        this.feature = feature;
    }

    /**
     * @return the samplingObservations
     */
    public List getSamplingObservations() {
        return getIfSerialized(samplingObservations);
    }

    /**
     * @param samplingObservations the samplingObservations to set
     */
    public void setSamplingObservations(OptionalOutput> samplingObservations) {
        this.samplingObservations = samplingObservations;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy