Interface ILogicRouteElementDetailItem
- All Superinterfaces:
 Cloneable,Serializable
- All Known Implementing Classes:
 LogicRouteElementDetailItem
The Interface 
IlogicRouteElementDetailItem carried by an ILogicRouteElement which
 is only created when ILogicEntityRoute#setRequestElementDetails(boolean) is set to true.
 This item contains Route specific data of a Node like data on arrival,
 departure and transition times, the distance, the idle time of how long the 
 Resource had to wait at the Node  until it opened according the OpeningHours
 more.
 
By having this information saved in the ILogicRouteElementDetailItem the Node
 Objects remain untouched by the behavior experienced in the Routes.
- Since:
 - 08/11/2018
 - Version:
 - 07/02/2020
 - Author:
 - DNA
 
- 
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumMarks the status of theResourcean respect to the specificNode. - 
Method Summary
Modifier and TypeMethodDescriptionlongGets 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 theLogicRouteElementDetailItem.earlyDeviationMillisin milliseconds.com.dna.jopt.config.types.PositionGets theNode.longGets theidle timethat aResourcehad to wait since it arrived prior to theOpeningHoursof theNodein milliseconds.longGets theLogicRouteElementDetailItem.lateDeviationMillisin 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. 
- 
Method Details
- 
getArrivalTime
long getArrivalTime()Gets the arrival time of theResourceat theNodein milliseconds since UNIX timestamp.- Returns:
 - the long arrival time
 
 - 
getDepatureTime
long getDepatureTime()Deprecated.Gets the departure time of theResourceat theNodein milliseconds since UNIX timestamp.- Returns:
 - the long departure time in milliseconds
 
 - 
getTransitionTime
long getTransitionTime()Gets the time that was needed since the lastgeoLocation, likely aINodeorIPillarNodein milliseconds.- Returns:
 - the long transitionTime in milliseconds
 
 - 
getIdleTime
long getIdleTime()Gets 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.- Returns:
 - the long idleTime
 
 - 
isUnlocatedIdleTime
boolean isUnlocatedIdleTime()Checksunlocated 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.- Returns:
 - the boolean of 
isUnlocatedIdleTime 
 - 
getWhiteSpaceIdleTime
long getWhiteSpaceIdleTime()Gets thewhite space idle timein milliseconds which is the time between thesetLocalMaxRouteStartReductionTimePillarand the normalIWorkingHours. ThemaxRouteStartReductionTimePillarcan only be used by anIPillarNode.- Returns:
 - the 
whiteSpaceIdleTime 
 - 
getDurationTime
long getDurationTime()Gets the duration between the last location of theResourceto the specificNodein milliseconds.- Returns:
 - the long duration time
 
 - 
getTransitionDistance
double getTransitionDistance()Gets the transition distance from the previous location of theResourceto theNodeinmeters.- Returns:
 - the double from the previous element
 
 - 
getElement
IOptimizationElement getElement()Gets theNode.- Returns:
 - the iOptimizationElement
 
 - 
getChosenOpeningHoursIndex
int getChosenOpeningHoursIndex()Gets theindexof theOpeningHoursfrom theNode.- Returns:
 - the int chosenOpeningHoursIndex
 
 - 
getChosenWorkingHoursIndex
int getChosenWorkingHoursIndex()Gets theindexof theWorkingHoursof theResource.- Returns:
 - the 
choosenWorkingHoursIndex 
 - 
getScheduleStatus
ILogicRouteElementDetailItem.ScheduleStatus getScheduleStatus()Gets theILogicRouteElementDetailItem.ScheduleStatus, which either isUNKNOWN, EARLY, IDLE, INTIMEorLATE. The default isUNKNOWN.- Returns:
 - the 
Status 
 - 
getVisitorId
String getVisitorId()Gets the visitor ID, which is the given name of theResource.- Returns:
 - the string of the visitor ID
 
 - 
getEarlyDeviation
long getEarlyDeviation()Gets theLogicRouteElementDetailItem.earlyDeviationMillisin milliseconds.- Returns:
 - the 
earlyDeviationMillis 
 - 
getLateDeviation
long getLateDeviation()Gets theLogicRouteElementDetailItem.lateDeviationMillisin milliseconds.- Returns:
 - the 
lateDeviationMillis 
 - 
getLoadChange
double[] getLoadChange()Gets 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.- Returns:
 - the load change
 
 - 
getNodeDepotAfterVisit
Optional<INodeDepot> getNodeDepotAfterVisit() - 
getNodeDepotBeforeVisit
Optional<INodeDepot> getNodeDepotBeforeVisit() - 
getEffectivePosition
com.dna.jopt.config.types.Position getEffectivePosition() - 
getDepartureTime
long getDepartureTime() - 
getOriginalTransitionTime
long getOriginalTransitionTime() 
 -