Class DefaultTemporalDatum

All Implemented Interfaces:
Serializable, Datum, TemporalDatum, IdentifiedObject

public class DefaultTemporalDatum extends AbstractDatum implements TemporalDatum
A temporal datum defines the origin of a temporal coordinate reference system.
Since:
2.1
Author:
Martin Desruisseaux (IRD)
See Also:
  • Field Details

  • Constructor Details

    • DefaultTemporalDatum

      public DefaultTemporalDatum(TemporalDatum datum)
      Constructs a new datum with the same values than the specified one. This copy constructor provides a way to wrap an arbitrary implementation into a Geotools one or a user-defined one (as a subclass), usually in order to leverage some implementation-specific API. This constructor performs a shallow copy, i.e. the properties are not cloned.
      Since:
      2.2
    • DefaultTemporalDatum

      public DefaultTemporalDatum(String name, Date origin)
      Constructs a temporal datum from a name.
      Parameters:
      name - The datum name.
      origin - The date and time origin of this temporal datum.
    • DefaultTemporalDatum

      public DefaultTemporalDatum(Map<String,?> properties, Date origin)
      Constructs a temporal datum from a set of properties. The properties map is given unchanged to the super-class constructor.
      Parameters:
      properties - Set of properties. Should contains at least "name".
      origin - The date and time origin of this temporal datum.
  • Method Details

    • getOrigin

      public Date getOrigin()
      The date and time origin of this temporal datum.
      Specified by:
      getOrigin in interface TemporalDatum
      Returns:
      The date and time origin of this temporal datum.
    • getAnchorPoint

      public InternationalString getAnchorPoint()
      Description of the point or points used to anchor the datum to the Earth.
      Specified by:
      getAnchorPoint in interface Datum
      Specified by:
      getAnchorPoint in interface TemporalDatum
      Overrides:
      getAnchorPoint in class AbstractDatum
      Returns:
      A description of the anchor point, or null if none.
    • getRealizationEpoch

      public Date getRealizationEpoch()
      The time after which this datum definition is valid.
      Specified by:
      getRealizationEpoch in interface Datum
      Specified by:
      getRealizationEpoch in interface TemporalDatum
      Overrides:
      getRealizationEpoch in class AbstractDatum
      Returns:
      The datum realization epoch, or null if not available.
    • equals

      public boolean equals(AbstractIdentifiedObject object, boolean compareMetadata)
      Compare this temporal datum with the specified object for equality.
      Overrides:
      equals in class AbstractDatum
      Parameters:
      object - The object to compare to this.
      compareMetadata - true for performing a strict comparaison, or false for comparing only properties relevant to transformations.
      Returns:
      true if both objects are equal.
    • hashCode

      public int hashCode()
      Returns a hash value for this temporal datum. Name, remarks and the like are not taken in account. In other words, two temporal datums will return the same hash value if they are equal in the sense of equals(AbstractIdentifiedObject, false).
      Overrides:
      hashCode in class AbstractIdentifiedObject
      Returns:
      The hash code value. This value doesn't need to be the same in past or future versions of this class.