Class SchedulingTeamResource
java.lang.Object
overit.geocallapp.wfm.orchestrator.scheduling.bl.schedulingteam.SchedulingTeamResource
- All Implemented Interfaces:
Serializable
Object that contains all the required information about a resource of a team
- Since:
- 18.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCalculates the arrival hour for the inputSchedulingTeamResourceprotected org.locationtech.jts.geom.CoordinateCalculate the resource end coordinate using the team configuration and workshiftvoidCalculate the starting coordinate of the day.protected org.locationtech.jts.geom.CoordinateCalculate the resource start coordinate using the team configuration and work shiftintorg.locationtech.jts.geom.Coordinateprotected SchedulingIntegrationServiceintReturns the position of the last schedulingintintGets the resource.protected DategetResourceStartWorkDate(Long workshift) Return the start working time of a resource evaluating his work shiftprotected LonggetScheduledActivityAddress(BOScheduling scheduling) Returns the address Id of the input schedulingorg.locationtech.jts.geom.CoordinateGets the work shift schedulings.booleanprotected voidLoads theBOTeamShiftand theBOTeamof the resource for the workshift dayvoidLoads the schedulings of the work shift, ordered by execution order.voidsetCrewShell(BOCrewShell crewShell) voidsetCrewShellComposition(BOCrewShellComposition crewShellComposition) voidsetCurrentScheduling(Long idCurrentScheduling) Sets the current scheduling position starting from the scheduling id,
and update also the previous/next positions.voidsetCurrentSchedulingPosition(int currentSchedulingPosition) voidsetEndCoordinate(org.locationtech.jts.geom.Coordinate endCoordinate) voidsetNextSchedulingPosition(int nextSchedulingPosition) protected voidsetPoolKit(PoolKit poolKit) voidsetPreviousSchedulingPosition(int previousSchedulingPosition) voidsetResource(BOResource resource) Sets the resource.voidsetStartCoordinate(org.locationtech.jts.geom.Coordinate startCoordinate) voidsetTeamShift(BOTeamShift teamShift) voidsetWorkShift(BOWorkShift workShift) Sets the work shift.voidsetWorkShiftSchedulings(List<BOScheduling> workShiftSchedulings) Sets the work shift schedulings.voidsetWorksInTeam(boolean worksInTeam) voidsetWorkTeam(BOTeam workTeam) toString()
-
Constructor Details
-
SchedulingTeamResource
public SchedulingTeamResource()
-
-
Method Details
-
setPoolKit
- Parameters:
poolKit- the poolKit to set
-
getIntegrationService
- Throws:
DAValidateException
-
getResource
Gets the resource.- Returns:
- the resource
-
setResource
Sets the resource.- Parameters:
resource- the new resource
-
getWorkShift
- Returns:
- the workShift
-
setWorkShift
Sets the work shift.- Parameters:
workShift- the new work shift
-
getWorkShiftSchedulings
Gets the work shift schedulings.- Returns:
- the work shift schedulings
-
setWorkShiftSchedulings
Sets the work shift schedulings.- Parameters:
workShiftSchedulings- the new work shift schedulings
-
getStartCoordinate
public org.locationtech.jts.geom.Coordinate getStartCoordinate()- Returns:
- the start coordinate of the working day
-
setStartCoordinate
public void setStartCoordinate(org.locationtech.jts.geom.Coordinate startCoordinate) - Parameters:
startCoordinate- the startCoordiante to set
-
getEndCoordinate
public org.locationtech.jts.geom.Coordinate getEndCoordinate()- Returns:
- the endCoordiante
-
setEndCoordinate
public void setEndCoordinate(org.locationtech.jts.geom.Coordinate endCoordinate) - Parameters:
endCoordinate- the endCoordiante to set
-
getLastSchedulingPosition
public int getLastSchedulingPosition()Returns the position of the last scheduling -
getPreviousScheduling
- Returns:
- the previous scheduling
-
getPreviousSchedulingPosition
public int getPreviousSchedulingPosition()- Returns:
- the position of the previous scheduling
-
setPreviousSchedulingPosition
public void setPreviousSchedulingPosition(int previousSchedulingPosition) - Parameters:
previousSchedulingPosition- the previous scheduling position to set
-
getNextScheduling
- Returns:
- the next scheduling
-
getNextSchedulingPosition
public int getNextSchedulingPosition()- Returns:
- the nextSchedulingPosition
-
setNextSchedulingPosition
public void setNextSchedulingPosition(int nextSchedulingPosition) - Parameters:
nextSchedulingPosition- the nextSchedulingPosition to set
-
setCurrentScheduling
Sets the current scheduling position starting from the scheduling id,
and update also the previous/next positions.- Parameters:
idCurrentScheduling- the current scheduling.
-
getCurrentScheduling
- Returns:
- the current scheduling
-
getCurrentSchedulingPosition
public int getCurrentSchedulingPosition()- Returns:
- the currentSchedulingPosition
-
setCurrentSchedulingPosition
public void setCurrentSchedulingPosition(int currentSchedulingPosition) - Parameters:
currentSchedulingPosition- the currentSchedulingPosition to set
-
getTravelData
- Returns:
- the travelData
-
isWorksInTeam
public boolean isWorksInTeam()- Returns:
- the worksInTeam
-
setWorksInTeam
public void setWorksInTeam(boolean worksInTeam) - Parameters:
worksInTeam- the worksInTeam to set
-
getTeamShift
- Returns:
- the teamShift
-
setTeamShift
- Parameters:
teamShift- the teamShift to set
-
getWorkTeam
- Returns:
- the workTeam
-
setWorkTeam
- Parameters:
workTeam- the workTeam to set
-
getCrewShell
- Returns:
- the crewShell
-
setCrewShell
- Parameters:
crewShell- the crewShell to set
-
getCrewShellComposition
- Returns:
- the crewShellComposition
-
setCrewShellComposition
- Parameters:
crewShellComposition- the crewShellComposition to set
-
loadWorkShiftSchedulings
Loads the schedulings of the work shift, ordered by execution order.- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
loadTeamShift
Loads theBOTeamShiftand theBOTeamof the resource for the workshift day- Throws:
DAValidateExceptionDAException
-
calculateResourcesCoordinates
Calculate the starting coordinate of the day.- Throws:
DAExceptionDAValidateException
-
calculateResourceStartCoordinate
protected org.locationtech.jts.geom.Coordinate calculateResourceStartCoordinate() throws DAValidateException, DAExceptionCalculate the resource start coordinate using the team configuration and work shift- Returns:
- Throws:
DAValidateExceptionDAException
-
calculateResourceEndCoordinate
protected org.locationtech.jts.geom.Coordinate calculateResourceEndCoordinate() throws DAValidateException, DAExceptionCalculate the resource end coordinate using the team configuration and workshift- Returns:
- Throws:
DAValidateExceptionDAException
-
calculateExpectedArrivalHour
Calculates the arrival hour for the inputSchedulingTeamResource- Throws:
DAExceptionDAValidateException
-
getResourceStartWorkDate
Return the start working time of a resource evaluating his work shift- Parameters:
workshift- the resource's work shift- Returns:
- the start working time of a resource in the input work shift
- Throws:
DAValidateExceptionDAException
-
getScheduledActivityAddress
protected Long getScheduledActivityAddress(BOScheduling scheduling) throws DAValidateException, DAException Returns the address Id of the input scheduling- Parameters:
scheduling- theBOScheduling- Returns:
- the address Id of the input scheduling
- Throws:
DAValidateExceptionDAException
-
toString
-