Class CrewShellSchedulingTeamBuilder
java.lang.Object
overit.geocallapp.wfm.orchestrator.scheduling.bl.schedulingteam.CrewShellSchedulingTeamBuilder
- All Implemented Interfaces:
Serializable
Builder class that creates a new
SchedulingTeam for crew shell instance based on the provided BOCrewShell,
reference date, and PoolKit.- Since:
- 18.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SchedulingTeammakeInstance(BOCrewShell crewShell, Date referenceDate, PoolKit poolKit) Creates a newSchedulingTeaminstance based on the providedBOCrewShell, reference date, andPoolKit.
-
Constructor Details
-
CrewShellSchedulingTeamBuilder
public CrewShellSchedulingTeamBuilder()
-
-
Method Details
-
makeInstance
public static SchedulingTeam makeInstance(BOCrewShell crewShell, Date referenceDate, PoolKit poolKit) throws DAValidateException, DAException Creates a newSchedulingTeaminstance based on the providedBOCrewShell, reference date, andPoolKit. The method will use theCrewShellSchedulingTeamResourceBuilderto assemble the team, consisting of the foreman and assistants. Only assistants with a work shift schedule will be included in the team. Assistants without a work shift schedule will be excluded, as their schedules do not require removal.- Parameters:
crewShell- theBOCrewShellto build the team forreferenceDate- the reference date to use for building the teampoolKit- thePoolKitto use for building the team- Returns:
- a new
SchedulingTeaminstance - Throws:
DAValidateException- if there is a validation errorDAException- if there is a data access error
-