Interface TimeModel

All Known Implementing Classes:
TimeInterval

public interface TimeModel
This interface must be supported if another calculation of time intervals is desired
Note: a implementing class must support a constructor without parameters
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    getInterval(Date start, Date end)
    calculates the time interval
    returns the Name of the Model for HTML purpose
  • Method Details

    • getInterval

      long getInterval(Date start, Date end)
      calculates the time interval
      Parameters:
      start - the start date of the interval
      end - the end date of the interval
      Returns:
      the calculated interval im milliseconds
    • getModelName

      String getModelName()
      returns the Name of the Model for HTML purpose
      Returns:
      the I18N string represent of this timemodel