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.
-
Field Summary
Fields inherited from interface ecmwf.ecpds.master.plugin.http.model.transfer.ArrivalMonitoringParameters
ANTICIPATION_TARGET1, ANTICIPATION_TARGET2, ANTICIPATION_TARGET3, ANTICIPATION_TARGET4, ARRIVAL_STATUS_BEFORE_PREDICTED, ARRIVAL_STATUS_BEFORE_TARGET1, ARRIVAL_STATUS_BEFORE_TARGET2, ARRIVAL_STATUS_NONE, ARRIVAL_STATUS_NOT_BEFORE_TARGET2, ARRIVAL_STATUS_NOT_BEFORE_TARGET3, ARRIVAL_STATUS_NOT_BEFORE_TARGET4, ARRIVAL_STATUS_OPERATORS_OK, COLORS
-
Constructor Summary
ConstructorsConstructorDescriptionArrivalMonitoringParametersBean
(DataTransfer dt, MonitoringValue mvTransfer, DataFile df, MonitoringValue mvArrival) Instantiates a new arrival monitoring parameters bean. -
Method Summary
Modifier and TypeMethodDescriptionGets the arrival earliest time.Gets the arrival latest time.Guesswork. :-( 1 st dev using last 14 days discarding earliest and latest.int
Gets the arrival status.Gets the arrival status color.TODO: The OFFSET should be configurable, not harcoded.Methods inherited from class ecmwf.ecpds.master.plugin.http.dao.transfer.MonitoringParametersBaseBean
calculateAndSaveMonitoringTimes, getArrivalMonitoring, getBeanInterfaceName, getDataFile, getDataTransfer, getTransferMonitoring
Methods inherited from class ecmwf.web.dao.ModelBeanBase
delete, delete, getAttributeValue, getId, getIntId, insert, insert, isNew, save, save, setId
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ecmwf.web.model.ModelBean
delete, delete, getAttributeValue, getBeanInterfaceName, getId, getIntId, insert, insert, isNew, save, save, setId
-
Constructor Details
-
ArrivalMonitoringParametersBean
public ArrivalMonitoringParametersBean(DataTransfer dt, MonitoringValue mvTransfer, DataFile df, MonitoringValue mvArrival) Instantiates a new arrival monitoring parameters bean.- Parameters:
dt
- the dtmvTransfer
- the mv transferdf
- the dfmvArrival
- the mv arrival
-
-
Method Details
-
getArrivalTargetTime
TODO: The OFFSET should be configurable, not harcoded. Gets the arrival target time.- Specified by:
getArrivalTargetTime
in interfaceArrivalMonitoringParameters
- Returns:
- Schedule time - OFFSET (=75m). This is a general target arbitrarily assigned my management
-
getArrivalPredictedTime
Guesswork. :-( 1 st dev using last 14 days discarding earliest and latest. Gets the arrival predicted time.- Specified by:
getArrivalPredictedTime
in interfaceArrivalMonitoringParameters
- Returns:
- Predicted value for arrival this time.
-
getArrivalStatus
public int getArrivalStatus()Gets the arrival status. Gets the arrival status.- Specified by:
getArrivalStatus
in interfaceArrivalMonitoringParameters
- Returns:
- A status calculated as a function of all other four values
-
getArrivalStatusColor
Gets the arrival status color.- Returns:
- the arrival status color
-
getArrivalEarliestTime
Gets the arrival earliest time. Gets the arrival earliest time.- Specified by:
getArrivalEarliestTime
in interfaceArrivalMonitoringParameters
- Returns:
- The earliest file arrival time for a default number of days
-
getArrivalLatestTime
Gets the arrival latest time. Gets the arrival latest time.- Specified by:
getArrivalLatestTime
in interfaceArrivalMonitoringParameters
- Returns:
- The latest file arrival time for a default number of days
-