Class CriticalActivityCriterion
java.lang.Object
overit.geocallapp.wfm.core.bl.criticalactivity.detectprocess.criterion.CriticalActivityCriterion
- Direct Known Subclasses:
NotInChargeAppointmentCriterion,NotInChargeBookingCriterion,NotInChargeCriterion,NotScheduledAppointmentCriterion,NotScheduledBookingCriterion,NotScheduledCriterion,NotStartedInChargeAppointmentCriterion,NotStartedInChargeBookingCriterion,NotStartedInChargeCriterion,NotStartedOnSiteAppointmentCriterion,NotStartedOnSiteBookingCriterion,NotStartedOnSiteCriterion,NotValidatedAppointmentCriterion,NotValidatedBookingCriterion,NotValidatedCriterion
Abstract class to be implemented in order to model the behaviour of a critical activity criterion.
- Since:
- 13.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DategetAppointmentStartDate(BOWorkOrderOperation woOperation) protected DategetArrivalDate(BOWorkOrderOperation woOperation) protected DategetBookingStartDate(BOWorkOrderOperation woOperation) getCache()Returns the critical activity cache.protected DategetCurrentDate(BOWorkOrderOperation woOperation) protected DategetExpectedEndDate(BOWorkOrderOperation woOperation) protected DategetInChargeDate(BOWorkOrderOperation woOperation) protected intgetMinutesDifference(Date date1, Date date2, BOWorkOrderOperation woOperation) protected LonggetOperationCenter(BOWorkOrderOperation woOperation) protected DategetSchedulingStartDate(BOWorkOrderOperation woOperation) protected WOOperationInterventionSchedulinggetWoOperationInterventionScheduling(BOWorkOrderOperation woOperation) Method to be implemented in order to define valid wo operation statuses.protected booleanisAppointmentOperation(BOWorkOrderOperation woOperation) protected booleanisBookingOperation(BOWorkOrderOperation woOperation) protected booleanisDifferenceOverThreshold(Date date1, Date date2, Long thresholdMinutes, BOWorkOrderOperation woOperation) protected booleanisDifferenceUnderThreshold(Date date1, Date date2, Long thresholdMinutes, BOWorkOrderOperation woOperation) protected booleanisNormalOperation(BOWorkOrderOperation woOperation) protected booleanabstract booleanmatches(BOWorkOrderOperation woOperation, CriticalActivityRule rule) Method to be implemented in order to define if aBOWorkOrderOperationmatches.voidSets the critical activity cache.
-
Constructor Details
-
CriticalActivityCriterion
public CriticalActivityCriterion()
-
-
Method Details
-
getWoOperationStatuses
Method to be implemented in order to define valid wo operation statuses.- Returns:
- the set of wo operation statuses
-
matches
Method to be implemented in order to define if aBOWorkOrderOperationmatches.- Parameters:
woOperation- the wo operationrule- the rule- Returns:
- true when the wo operation matches
-
getCache
Returns the critical activity cache.- Returns:
- the critical activity cache
-
setCache
Sets the critical activity cache.- Parameters:
cache- the cache
-
getMinutesDifference
-
isDifferenceOverThreshold
protected boolean isDifferenceOverThreshold(Date date1, Date date2, Long thresholdMinutes, BOWorkOrderOperation woOperation) -
isDifferenceUnderThreshold
protected boolean isDifferenceUnderThreshold(Date date1, Date date2, Long thresholdMinutes, BOWorkOrderOperation woOperation) -
getCurrentDate
-
isTimeZoneActive
protected boolean isTimeZoneActive() -
getOperationCenter
-
getWoOperationInterventionScheduling
protected WOOperationInterventionScheduling getWoOperationInterventionScheduling(BOWorkOrderOperation woOperation) -
getExpectedEndDate
-
getSchedulingStartDate
-
getArrivalDate
-
getInChargeDate
-
getAppointmentStartDate
-
getBookingStartDate
-
isNormalOperation
-
isAppointmentOperation
-
isBookingOperation
-