public interface ILogicRouteElementDetailItem extends Serializable, Cloneable
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
.
Modifier and Type | Interface and Description |
---|---|
static class |
ILogicRouteElementDetailItem.ScheduleStatus
Marks the status of the
Resource an respect to the specific Node . |
Modifier and Type | Method and Description |
---|---|
long |
getArrivalTime()
Gets the arrival time of the
Resource at the Node in milliseconds since UNIX
timestamp. |
int |
getChosenOpeningHoursIndex()
Gets the
index of the OpeningHours from the Node . |
int |
getChosenWorkingHoursIndex()
Gets the
index of the WorkingHours of the Resource . |
long |
getDepartureTime() |
long |
getDepatureTime()
Deprecated.
|
long |
getDurationTime()
Gets the duration between the last location of the
Resource to the specific Node in milliseconds. |
long |
getEarlyDeviation()
Gets the
LogicRouteElementDetailItem.earlyDeviationMillis in milliseconds. |
com.dna.jopt.config.types.Position |
getEffectivePosition() |
IOptimizationElement |
getElement()
Gets the
Node . |
long |
getIdleTime()
Gets the
idle time that a Resource had to wait since it arrived prior to the
OpeningHours of the Node in milliseconds. |
long |
getLateDeviation()
Gets the
LogicRouteElementDetailItem.lateDeviationMillis in milliseconds. |
double[] |
getLoadChange()
Gets the load change.
|
Optional<INodeDepot> |
getNodeDepotAfterVisit() |
Optional<INodeDepot> |
getNodeDepotBeforeVisit() |
long |
getOriginalTransitionTime() |
ILogicRouteElementDetailItem.ScheduleStatus |
getScheduleStatus()
Gets the
ILogicRouteElementDetailItem.ScheduleStatus , which either is UNKNOWN, EARLY, IDLE, INTIME or LATE . |
double |
getTransitionDistance()
Gets the transition distance from the previous location of the
Resource to the Node in meters . |
long |
getTransitionTime()
Gets the time that was needed since the last
geoLocation , likely a INode or
IPillarNode in milliseconds. |
String |
getVisitorId()
Gets the visitor ID, which is the given name of the
Resource . |
long |
getWhiteSpaceIdleTime()
Gets the
white space idle time in milliseconds which is the time between the setLocalMaxRouteStartReductionTimePillar and the normal IWorkingHours . |
boolean |
isUnlocatedIdleTime()
Checks
unlocated idle time , which means the idle time is happening on the way
and not at the Node . |
long getArrivalTime()
Resource
at the Node
in milliseconds since UNIX
timestamp.long getDepatureTime()
Resource
at the Node
in milliseconds since UNIX
timestamp.long getTransitionTime()
geoLocation
, likely a INode
or
IPillarNode
in milliseconds.long getIdleTime()
idle time
that a Resource
had to wait since it arrived prior to the
OpeningHours
of the Node
in milliseconds.
If the return number is bigger than 0 the INode.isWaitOnEarlyArrival()
is set to
true
and the ILogicRouteElementDetailItem.ScheduleStatus
will be set to IDLE
. If INode.isWaitOnEarlyArrival()
would be set to false
the ILogicRouteElementDetailItem.ScheduleStatus
would be
set to EARLY
and the return number would be 0 since the Resource
is not idling
.
boolean isUnlocatedIdleTime()
unlocated idle time
, which means the idle time
is happening on the way
and not at the Node
. The Resource
will arrive at the Node
when the work
is starting. The default value is false
.isUnlocatedIdleTime
long getWhiteSpaceIdleTime()
white space idle time
in milliseconds which is the time between the setLocalMaxRouteStartReductionTimePillar
and the normal IWorkingHours
. The maxRouteStartReductionTimePillar
can only be used by an IPillarNode
.whiteSpaceIdleTime
long getDurationTime()
Resource
to the specific Node
in milliseconds.double getTransitionDistance()
Resource
to the Node
in meters
.IOptimizationElement getElement()
Node
.int getChosenOpeningHoursIndex()
index
of the OpeningHours
from the Node
.int getChosenWorkingHoursIndex()
index
of the WorkingHours
of the Resource
.choosenWorkingHoursIndex
ILogicRouteElementDetailItem.ScheduleStatus getScheduleStatus()
ILogicRouteElementDetailItem.ScheduleStatus
, which either is UNKNOWN, EARLY, IDLE, INTIME
or LATE
. The default is UNKNOWN
.Status
String getVisitorId()
Resource
.long getEarlyDeviation()
LogicRouteElementDetailItem.earlyDeviationMillis
in milliseconds.earlyDeviationMillis
long getLateDeviation()
LogicRouteElementDetailItem.lateDeviationMillis
in milliseconds.lateDeviationMillis
double[] getLoadChange()
Optional<INodeDepot> getNodeDepotAfterVisit()
Optional<INodeDepot> getNodeDepotBeforeVisit()
com.dna.jopt.config.types.Position getEffectivePosition()
long getDepartureTime()
long getOriginalTransitionTime()
Copyright © 2017–2023 DNA Evolutions GmbH. All rights reserved.