java.lang.Object
overit.geocallapp.wfm.orchestrator.scheduling.bl.schedulingteam.SchedulingTeam
All Implemented Interfaces:
Serializable

public class SchedulingTeam extends Object implements Serializable
Object that contains all the required information about the team
Since:
18.0
See Also:
  • Constructor Details

    • SchedulingTeam

      public SchedulingTeam()
  • Method Details

    • setPoolKit

      protected void setPoolKit(PoolKit poolKit)
      Parameters:
      poolKit - the poolKit to set
    • getIntegrationService

      protected SchedulingIntegrationService getIntegrationService() throws DAValidateException
      Throws:
      DAValidateException
    • getForeman

      public SchedulingTeamResource getForeman()
    • setForeman

      public void setForeman(SchedulingTeamResource foreman)
    • getAssistants

      public List<SchedulingTeamResource> getAssistants()
    • addAssistant

      public void addAssistant(SchedulingTeamResource assistant)
    • getAllTeamResources

      public List<SchedulingTeamResource> getAllTeamResources()
    • initializePreviousSchedulingPosition

      public void initializePreviousSchedulingPosition()
      Initialize the previous scheduling position to the last activity position of the day.
    • calculateCurrentActivityPosition

      public void calculateCurrentActivityPosition(Long activityId)
      Given an activity Id, calculates the position of the schedulings related to the input activity
    • calculateResourcesCoordinates

      public void calculateResourcesCoordinates() throws DAValidateException, DAException
      Calculate the starting coordinate of the day of each team resource.
      Throws:
      DAException
      DAValidateException
    • calculateTeamExpectedArrivalDate

      public void calculateTeamExpectedArrivalDate() throws DAException, DAValidateException
      Calculates the common arrival hour for each team member
      Throws:
      DAException
      DAValidateException
    • getMaxExpectedArrivalHour

      protected Date getMaxExpectedArrivalHour()
      Returns:
      the arrival date of the team (the later arrival hour of team members)
    • checkGenericQualifications

      public void checkGenericQualifications() throws DAValidateException, DAException
      Check generic qualification on all the resources.
      Throws:
      DAValidateException - the DA validate exception
      DAException - the DA exception
    • evaluateTeamResourceAvailability

      public void evaluateTeamResourceAvailability(Date referenceDate) throws DAValidateException
      Check if all the resources of the team are active in an in put day
      Parameters:
      referenceDate - the Date used for evaluate the resource validity
      Throws:
      DAValidateException - if there is at least one resource not active in the input day
    • toString

      public String toString()
      Overrides:
      toString in class Object