Class LogicRouteElementDetailItem
java.lang.Object
com.dna.jopt.member.bucket.route.controller.detail.LogicRouteElementDetailItem
- All Implemented Interfaces:
ILogicRouteElementDetailItem,Serializable,Cloneable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.dna.jopt.member.bucket.route.controller.detail.ILogicRouteElementDetailItem
ILogicRouteElementDetailItem.ScheduleStatus -
Constructor Summary
ConstructorsConstructorDescriptionLogicRouteElementDetailItem(IOptimizationElement node, long arrivalTime, long departureTime, long transitionTime, long idleTime, boolean isUnlocatedIdleTime, long whiteSpaceIdleTime, long durationTime, double distance2prevElement, long earlyDeviationMillis, long lateDeviationMillis, int choosenOpeningHoursIndex, int choosenWorkingHoursIndex, String visitorId, ILogicRouteElementDetailItem.ScheduleStatus status, double[] loadChange, double[] curCapacity, INodeDepot depotBeforeVisit, INodeDepot depotAfterVisit, com.dna.jopt.config.types.Position effectivePosition) LogicRouteElementDetailItem(ZoneId zoneId, long arrivalTime, long departureTime, long transitionTime, long idleTime, boolean isUnlocatedIdleTime, long whiteSpaceIdleTime, long durationTime, double distance2prevElement, long earlyDeviationMillis, long lateDeviationMillis, int chosenOpeningHoursIndex, int chosenWorkingHoursIndex, String visitorId, ILogicRouteElementDetailItem.ScheduleStatus status, double[] curCapacity) -
Method Summary
Modifier and TypeMethodDescriptionstatic ZoneIdlongGets the arrival time of theResourceat theNodein milliseconds since UNIX timestamp.intGets theindexof theOpeningHoursfrom theNode.intGets theindexof theWorkingHoursof theResource.longlongDeprecated.longGets the duration between the last location of theResourceto the specificNodein milliseconds.longGets theearlyDeviationMillisin milliseconds.com.dna.jopt.config.types.PositionGets theNode.longGets theidle timethat aResourcehad to wait since it arrived prior to theOpeningHoursof theNodein milliseconds.longGets thelateDeviationMillisin milliseconds.double[]Gets the load change.longGets theILogicRouteElementDetailItem.ScheduleStatus, which either isUNKNOWN, EARLY, IDLE, INTIMEorLATE.doubleGets the transition distance from the previous location of theResourceto theNodeinmeters.longGets the time that was needed since the lastgeoLocation, likely aINodeorIPillarNodein milliseconds.Gets the visitor ID, which is the given name of theResource.longGets thewhite space idle timein milliseconds which is the time between thesetLocalMaxRouteStartReductionTimePillarand the normalIWorkingHours.booleanChecksunlocated idle time, which means theidle timeis happening on the way and not at theNode.voidsetArrivalTime(long arrivalTime) voidsetDepartureTime(long depatureTime) voidsetDistance2prevElement(double distance2prevElement) voidsetDurationTime(long durationTime) voidsetIdleTime(long idleTime) voidsetOriginalTransitionTime(long originalTransitionTime) voidsetTransitionTime(long transitionTime) toString()
-
Constructor Details
-
LogicRouteElementDetailItem
public LogicRouteElementDetailItem(ZoneId zoneId, long arrivalTime, long departureTime, long transitionTime, long idleTime, boolean isUnlocatedIdleTime, long whiteSpaceIdleTime, long durationTime, double distance2prevElement, long earlyDeviationMillis, long lateDeviationMillis, int chosenOpeningHoursIndex, int chosenWorkingHoursIndex, String visitorId, ILogicRouteElementDetailItem.ScheduleStatus status, double[] curCapacity) -
LogicRouteElementDetailItem
public LogicRouteElementDetailItem(IOptimizationElement node, long arrivalTime, long departureTime, long transitionTime, long idleTime, boolean isUnlocatedIdleTime, long whiteSpaceIdleTime, long durationTime, double distance2prevElement, long earlyDeviationMillis, long lateDeviationMillis, int choosenOpeningHoursIndex, int choosenWorkingHoursIndex, String visitorId, ILogicRouteElementDetailItem.ScheduleStatus status, double[] loadChange, double[] curCapacity, INodeDepot depotBeforeVisit, INodeDepot depotAfterVisit, com.dna.jopt.config.types.Position effectivePosition)
-
-
Method Details
-
extractZoneId
-
setArrivalTime
public void setArrivalTime(long arrivalTime) -
setDepartureTime
public void setDepartureTime(long depatureTime) -
setDurationTime
public void setDurationTime(long durationTime) -
setTransitionTime
public void setTransitionTime(long transitionTime) -
setOriginalTransitionTime
public void setOriginalTransitionTime(long originalTransitionTime) -
getOriginalTransitionTime
public long getOriginalTransitionTime()- Specified by:
getOriginalTransitionTimein interfaceILogicRouteElementDetailItem
-
setDistance2prevElement
public void setDistance2prevElement(double distance2prevElement) -
setIdleTime
public void setIdleTime(long idleTime) -
getScheduleStatus
Description copied from interface:ILogicRouteElementDetailItemGets theILogicRouteElementDetailItem.ScheduleStatus, which either isUNKNOWN, EARLY, IDLE, INTIMEorLATE. The default isUNKNOWN.- Specified by:
getScheduleStatusin interfaceILogicRouteElementDetailItem- Returns:
- the
Status
-
getVisitorId
Description copied from interface:ILogicRouteElementDetailItemGets the visitor ID, which is the given name of theResource.- Specified by:
getVisitorIdin interfaceILogicRouteElementDetailItem- Returns:
- the string of the visitor ID
-
getArrivalTime
public long getArrivalTime()Description copied from interface:ILogicRouteElementDetailItemGets the arrival time of theResourceat theNodein milliseconds since UNIX timestamp.- Specified by:
getArrivalTimein interfaceILogicRouteElementDetailItem- Returns:
- the long arrival time
-
getChosenOpeningHoursIndex
public int getChosenOpeningHoursIndex()Description copied from interface:ILogicRouteElementDetailItemGets theindexof theOpeningHoursfrom theNode.- Specified by:
getChosenOpeningHoursIndexin interfaceILogicRouteElementDetailItem- Returns:
- the int chosenOpeningHoursIndex
-
getChosenWorkingHoursIndex
public int getChosenWorkingHoursIndex()Description copied from interface:ILogicRouteElementDetailItemGets theindexof theWorkingHoursof theResource.- Specified by:
getChosenWorkingHoursIndexin interfaceILogicRouteElementDetailItem- Returns:
- the
choosenWorkingHoursIndex
-
getDepatureTime
Deprecated.Description copied from interface:ILogicRouteElementDetailItemGets the departure time of theResourceat theNodein milliseconds since UNIX timestamp.- Specified by:
getDepatureTimein interfaceILogicRouteElementDetailItem- Returns:
- the long departure time in milliseconds
-
getDepartureTime
public long getDepartureTime()- Specified by:
getDepartureTimein interfaceILogicRouteElementDetailItem
-
getLoadChange
public double[] getLoadChange()Description copied from interface:ILogicRouteElementDetailItemGets the load change. In case a node is requesting a pickup or delivery, the load change indicates how the load of the node changed after the visitation.- Specified by:
getLoadChangein interfaceILogicRouteElementDetailItem- Returns:
- the load change
-
getTransitionTime
public long getTransitionTime()Description copied from interface:ILogicRouteElementDetailItemGets the time that was needed since the lastgeoLocation, likely aINodeorIPillarNodein milliseconds.- Specified by:
getTransitionTimein interfaceILogicRouteElementDetailItem- Returns:
- the long transitionTime in milliseconds
-
getIdleTime
public long getIdleTime()Description copied from interface:ILogicRouteElementDetailItemGets theidle timethat aResourcehad to wait since it arrived prior to theOpeningHoursof theNodein milliseconds.If the return number is bigger than 0 the
INode.isWaitOnEarlyArrival()is set totrueand theILogicRouteElementDetailItem.ScheduleStatuswill be set toIDLE. IfINode.isWaitOnEarlyArrival()would be set tofalsetheILogicRouteElementDetailItem.ScheduleStatuswould be set toEARLYand the return number would be 0 since theResourceis notidling.- Specified by:
getIdleTimein interfaceILogicRouteElementDetailItem- Returns:
- the long idleTime
-
isUnlocatedIdleTime
public boolean isUnlocatedIdleTime()Description copied from interface:ILogicRouteElementDetailItemChecksunlocated idle time, which means theidle timeis happening on the way and not at theNode. TheResourcewill arrive at theNodewhen the work is starting. The default value isfalse.- Specified by:
isUnlocatedIdleTimein interfaceILogicRouteElementDetailItem- Returns:
- the boolean of
isUnlocatedIdleTime
-
getWhiteSpaceIdleTime
public long getWhiteSpaceIdleTime()Description copied from interface:ILogicRouteElementDetailItemGets thewhite space idle timein milliseconds which is the time between thesetLocalMaxRouteStartReductionTimePillarand the normalIWorkingHours. ThemaxRouteStartReductionTimePillarcan only be used by anIPillarNode.- Specified by:
getWhiteSpaceIdleTimein interfaceILogicRouteElementDetailItem- Returns:
- the
whiteSpaceIdleTime
-
getDurationTime
public long getDurationTime()Description copied from interface:ILogicRouteElementDetailItemGets the duration between the last location of theResourceto the specificNodein milliseconds.- Specified by:
getDurationTimein interfaceILogicRouteElementDetailItem- Returns:
- the long duration time
-
getEarlyDeviation
public long getEarlyDeviation()Description copied from interface:ILogicRouteElementDetailItemGets theearlyDeviationMillisin milliseconds.- Specified by:
getEarlyDeviationin interfaceILogicRouteElementDetailItem- Returns:
- the
earlyDeviationMillis
-
getLateDeviation
public long getLateDeviation()Description copied from interface:ILogicRouteElementDetailItemGets thelateDeviationMillisin milliseconds.- Specified by:
getLateDeviationin interfaceILogicRouteElementDetailItem- Returns:
- the
lateDeviationMillis
-
getTransitionDistance
public double getTransitionDistance()Description copied from interface:ILogicRouteElementDetailItemGets the transition distance from the previous location of theResourceto theNodeinmeters.- Specified by:
getTransitionDistancein interfaceILogicRouteElementDetailItem- Returns:
- the double from the previous element
-
getElement
Description copied from interface:ILogicRouteElementDetailItemGets theNode.- Specified by:
getElementin interfaceILogicRouteElementDetailItem- Returns:
- the iOptimizationElement
-
getNodeDepotAfterVisit
- Specified by:
getNodeDepotAfterVisitin interfaceILogicRouteElementDetailItem
-
getNodeDepotBeforeVisit
- Specified by:
getNodeDepotBeforeVisitin interfaceILogicRouteElementDetailItem
-
getEffectivePosition
public com.dna.jopt.config.types.Position getEffectivePosition()- Specified by:
getEffectivePositionin interfaceILogicRouteElementDetailItem
-
toString
-