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

org.opengis.temporal.IntervalLength Maven / Gradle / Ivy

There is a newer version: 24.2-oss84-1
Show newest version
/*
 *    GeoTools - The Open Source Java GIS Toolkit
 *    http://geotools.org
 *
 *    (C) 2011, Open Source Geospatial Foundation (OSGeo)
 *    (C) 2005, Open Geospatial Consortium Inc.
 *
 *    All Rights Reserved. http://www.opengis.org/legal/
 */
package org.opengis.temporal;

import static org.opengis.annotation.Obligation.*;
import static org.opengis.annotation.Specification.*;

import javax.measure.Unit;
import org.opengis.annotation.UML;

/**
 * A data type for intervals of time which supports the expression of duration in terms of a
 * specified multiple of a single unit of time.
 *
 * @author Stephane Fellah (Image Matters)
 * @author Alexander Petkov
 * @author Martin Desruisseaux (IRD)
 */
@UML(identifier = "TM_IntervalLength", specification = ISO_19108)
public interface IntervalLength extends Duration {
    /** The unit of measure used to express the length of the interval. */
    @UML(identifier = "unit", specification = ISO_19108)
    Unit getUnit();

    /** A positive integer that is the base of the mulitplier of the unit. */
    @UML(identifier = "radix", specification = ISO_19108)
    int getRadix();

    /** The exponent of the base. */
    @UML(identifier = "factor", specification = ISO_19108)
    int getFactor();

    /**
     * The length of the time interval as an integer multiple of one {@linkplain #getRadix
     * radix}(-{@linkplain #getFactor factor}) of the {@linkplain #getUnit specified
     * unit}.
     */
    @UML(identifier = "value", specification = ISO_19108)
    int getValue();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy