Class ArrivalMonitoringParametersBean

java.lang.Object
ecmwf.web.dao.ModelBeanBase
ecmwf.ecpds.master.plugin.http.dao.transfer.MonitoringParametersBaseBean
ecmwf.ecpds.master.plugin.http.dao.transfer.ArrivalMonitoringParametersBean
All Implemented Interfaces:
ArrivalMonitoringParameters, ecmwf.web.model.ModelBean

public class ArrivalMonitoringParametersBean extends MonitoringParametersBaseBean implements ArrivalMonitoringParameters
The Class ArrivalMonitoringParametersBean.
  • Constructor Details

    • ArrivalMonitoringParametersBean

      public ArrivalMonitoringParametersBean(DataTransfer dt, MonitoringValue mvTransfer, DataFile df, MonitoringValue mvArrival)
      Instantiates a new arrival monitoring parameters bean.
      Parameters:
      dt - the dt
      mvTransfer - the mv transfer
      df - the df
      mvArrival - the mv arrival
  • Method Details

    • getArrivalTargetTime

      public Date getArrivalTargetTime()
      TODO: The OFFSET should be configurable, not harcoded. Gets the arrival target time.
      Specified by:
      getArrivalTargetTime in interface ArrivalMonitoringParameters
      Returns:
      Schedule time - OFFSET (=75m). This is a general target arbitrarily assigned my management
    • getArrivalPredictedTime

      public Date getArrivalPredictedTime()
      Guesswork. :-( 1 st dev using last 14 days discarding earliest and latest. Gets the arrival predicted time.
      Specified by:
      getArrivalPredictedTime in interface ArrivalMonitoringParameters
      Returns:
      Predicted value for arrival this time.
    • getArrivalStatus

      public int getArrivalStatus()
      Gets the arrival status. Gets the arrival status.
      Specified by:
      getArrivalStatus in interface ArrivalMonitoringParameters
      Returns:
      A status calculated as a function of all other four values
    • getArrivalStatusColor

      public Color getArrivalStatusColor()
      Gets the arrival status color.
      Returns:
      the arrival status color
    • getArrivalEarliestTime

      public Date getArrivalEarliestTime()
      Gets the arrival earliest time. Gets the arrival earliest time.
      Specified by:
      getArrivalEarliestTime in interface ArrivalMonitoringParameters
      Returns:
      The earliest file arrival time for a default number of days
    • getArrivalLatestTime

      public Date getArrivalLatestTime()
      Gets the arrival latest time. Gets the arrival latest time.
      Specified by:
      getArrivalLatestTime in interface ArrivalMonitoringParameters
      Returns:
      The latest file arrival time for a default number of days