Class BaseTemporalObject

    • Field Detail

      • timePeriod

        protected org.joda.time.Interval timePeriod
    • Constructor Detail

      • BaseTemporalObject

        public BaseTemporalObject()
      • BaseTemporalObject

        public BaseTemporalObject​(org.joda.time.Interval timePeriod)
    • Method Detail

      • getTimePeriod

        public org.joda.time.Interval getTimePeriod()
        Description copied from interface: IBaseTemporalObject
        Returns the time period that the object is valid for
        Specified by:
        getTimePeriod in interface IBaseTemporalObject
        Returns:
        The interval over which the data type is valid.
      • compareTime

        public int compareTime​(IBaseTemporalObject baseDataType)
        Description copied from interface: IBaseTemporalObject
        Compares the valid time of another IBaseDataType to this object's valid time.
        Specified by:
        compareTime in interface IBaseTemporalObject
        Parameters:
        baseDataType - The object to compare against this object.
        Returns:
        a negative integer, zero, or a positive integer as the passed in object is less than, equal to, or greater than this object.
      • getUUID

        public UUID getUUID()
        Description copied from interface: IBaseTemporalObject
        Returns a unique identifier for this object inside this program. This was added for use in caching because different event types may contain identifiers in the ID that overlap from one event type to the next. This is so we can uniquely identify this particular object when caching such things as image parameters.
        Specified by:
        getUUID in interface IBaseTemporalObject
        Returns:
        A unique identifier for this object inside this program.