org.opengis.temporal.IntervalLength Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gt-opengis Show documentation
Show all versions of gt-opengis Show documentation
Standard interfaces implemented throughout the library.
/*
* 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();
}