public class LogicRouteElementDetailItem extends Object implements ILogicRouteElementDetailItem
ILogicRouteElementDetailItem.ScheduleStatus
Constructor and Description |
---|
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) |
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) |
Modifier and Type | Method and Description |
---|---|
static ZoneId |
extractZoneId(IOptimizationElement node) |
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
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
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 . |
void |
setArrivalTime(long arrivalTime) |
void |
setDepartureTime(long depatureTime) |
void |
setDistance2prevElement(double distance2prevElement) |
void |
setDurationTime(long durationTime) |
void |
setIdleTime(long idleTime) |
void |
setOriginalTransitionTime(long originalTransitionTime) |
void |
setTransitionTime(long transitionTime) |
String |
toString() |
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)
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)
public static ZoneId extractZoneId(IOptimizationElement node)
public void setArrivalTime(long arrivalTime)
public void setDepartureTime(long depatureTime)
public void setDurationTime(long durationTime)
public void setTransitionTime(long transitionTime)
public void setOriginalTransitionTime(long originalTransitionTime)
public long getOriginalTransitionTime()
getOriginalTransitionTime
in interface ILogicRouteElementDetailItem
public void setDistance2prevElement(double distance2prevElement)
public void setIdleTime(long idleTime)
public ILogicRouteElementDetailItem.ScheduleStatus getScheduleStatus()
ILogicRouteElementDetailItem
ILogicRouteElementDetailItem.ScheduleStatus
, which either is UNKNOWN, EARLY, IDLE, INTIME
or LATE
. The default is UNKNOWN
.getScheduleStatus
in interface ILogicRouteElementDetailItem
Status
public String getVisitorId()
ILogicRouteElementDetailItem
Resource
.getVisitorId
in interface ILogicRouteElementDetailItem
public long getArrivalTime()
ILogicRouteElementDetailItem
Resource
at the Node
in milliseconds since UNIX
timestamp.getArrivalTime
in interface ILogicRouteElementDetailItem
public int getChosenOpeningHoursIndex()
ILogicRouteElementDetailItem
index
of the OpeningHours
from the Node
.getChosenOpeningHoursIndex
in interface ILogicRouteElementDetailItem
public int getChosenWorkingHoursIndex()
ILogicRouteElementDetailItem
index
of the WorkingHours
of the Resource
.getChosenWorkingHoursIndex
in interface ILogicRouteElementDetailItem
choosenWorkingHoursIndex
@Deprecated public long getDepatureTime()
ILogicRouteElementDetailItem
Resource
at the Node
in milliseconds since UNIX
timestamp.getDepatureTime
in interface ILogicRouteElementDetailItem
public long getDepartureTime()
getDepartureTime
in interface ILogicRouteElementDetailItem
public double[] getLoadChange()
ILogicRouteElementDetailItem
getLoadChange
in interface ILogicRouteElementDetailItem
public long getTransitionTime()
ILogicRouteElementDetailItem
geoLocation
, likely a INode
or
IPillarNode
in milliseconds.getTransitionTime
in interface ILogicRouteElementDetailItem
public long getIdleTime()
ILogicRouteElementDetailItem
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
.
getIdleTime
in interface ILogicRouteElementDetailItem
public boolean isUnlocatedIdleTime()
ILogicRouteElementDetailItem
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
in interface ILogicRouteElementDetailItem
isUnlocatedIdleTime
public long getWhiteSpaceIdleTime()
ILogicRouteElementDetailItem
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
.getWhiteSpaceIdleTime
in interface ILogicRouteElementDetailItem
whiteSpaceIdleTime
public long getDurationTime()
ILogicRouteElementDetailItem
Resource
to the specific Node
in milliseconds.getDurationTime
in interface ILogicRouteElementDetailItem
public long getEarlyDeviation()
ILogicRouteElementDetailItem
earlyDeviationMillis
in milliseconds.getEarlyDeviation
in interface ILogicRouteElementDetailItem
earlyDeviationMillis
public long getLateDeviation()
ILogicRouteElementDetailItem
lateDeviationMillis
in milliseconds.getLateDeviation
in interface ILogicRouteElementDetailItem
lateDeviationMillis
public double getTransitionDistance()
ILogicRouteElementDetailItem
Resource
to the Node
in meters
.getTransitionDistance
in interface ILogicRouteElementDetailItem
public IOptimizationElement getElement()
ILogicRouteElementDetailItem
Node
.getElement
in interface ILogicRouteElementDetailItem
public Optional<INodeDepot> getNodeDepotAfterVisit()
getNodeDepotAfterVisit
in interface ILogicRouteElementDetailItem
public Optional<INodeDepot> getNodeDepotBeforeVisit()
getNodeDepotBeforeVisit
in interface ILogicRouteElementDetailItem
public com.dna.jopt.config.types.Position getEffectivePosition()
getEffectivePosition
in interface ILogicRouteElementDetailItem
Copyright © 2017–2023 DNA Evolutions GmbH. All rights reserved.