public class InducedIdleEventNode extends EventNode
IOptimizationElement.OptimizationElementFlavour
Modifier and Type | Field and Description |
---|---|
static int |
RELATED_ELEMENT_INDEX |
dutyHours
Constructor and Description |
---|
InducedIdleEventNode(INode2NodeRelation rel,
IOpeningHours openingHour,
Duration duration)
The constructor of an
InducedIdleEventNode to add to the Node ID
the Relations to another Node . |
InducedIdleEventNode(String nodeId,
IOpeningHours openingHour,
Duration duration)
The constructor of an
InducedIdleEventNode . |
Modifier and Type | Method and Description |
---|---|
Optional<Long> |
getCreationTimeStamp()
Gets the
TimeStamp of the creation of the InducedIdleEventNode as created by
System.currentTimeMillis() . |
String |
getId()
Gets the
ID and the time it was created. |
Optional<String> |
getMasterNodeId()
Gets the
ID of the MasterNode . |
static String |
getPartialNodeId(String masterNodeId,
String relatedNodeId)
Gets the
Node ID and adds the masterNodeId and the relatedNodeId . |
Optional<String> |
getRelatedNodeId()
Gets the
ID of the RelatedNode . |
static InducedIdleEventNode |
getShrinkedCopy(InducedIdleEventNode baseEvent,
long shinkMillis,
long safetyAdditionalDuration)
Gets a copy of the input
Node where the input shinkMillis and safetyAdditionalDuration
are substracted or added respectively from/to the end of the timeWindow of the OpeningHours in
seconds. |
boolean |
hasRouteDependentVisitDuration()
Checks for route dependent visit duration.
|
void |
setCreationTimeStamp(long creationTimeStamp)
Sets the input in the form of
System.currentTimeMillis() as the TimeStamp
when the InducedIdleEventNode was created. |
void |
setMasterNodeId(String connectedMasterNodeId)
Sets the input
ID as the MasterNode . |
void |
setRelatedNodeId(String connectedRelatedNodeId)
Sets the input
ID as the RelatedNode |
getFlavour, hasRealGeoLocation, isPartialExchangeIdleForDrivingTime, isPillarNode, setIsPartialExchangeIdleForDrivingTime
addConstraint, addNode2NodeRelation, addQualification, addSubsequentSlaveNode, addSubsequentSlaveNodes, addViolation, decrementCurrentAutoFilterProtectedExecutions, detachNodeRelations, detachResourceConstraints, detachResourceConstraints, equals, getAutoFilterViolationCollector, getBaseJointVisitDuration, getBaseJointVisitDurationMillis, getBaseVisitDuration, getBaseVisitDurationMillis, getConstraints, getCurrentLeftAutoFilterProtectedExecutions, getDutyHours, getFirstNodeInRouteImportance, getFixCost, getImportance, getIndividualOfferedNodeMultiplier, getJointVisitDuration, getJointVisitDurationMillis, getLastKnownAttachedAndRemovedResIds, getLastNodeInRouteImportance, getLoad, getLockdownTime, getMinVisitDuration, getMinVisitDurationMillis, getNode2NodeRelations, getNodeColor, getNodeDepot, getNodeId, getOriginalDutyHours, getQualifications, getStayAtStartDuration, getSubsequentSlaveNodes, getTempImplausibleScore, getTotalLoadDimension, getUnloadAllDimension, getViolations, getVisitDurationMillis, hasFullJobLevelRelations, hashCode, hasRelations, invokeDetachedResourceConstraints, isAllowMoveToReduceFlexTime, isAutoFilterProtected, isCausingIdleTimeCost, isDutyHoursIncludesVisitDuration, isOfferedNode, isOptimizable, isOptional, isReturnStart, isStayNode, isUnassigned, isUnloadAll, isUseJointVisitDuration, isWaitOnEarlyArrival, isWaitOnEarlyArrivalFirstNode, isWorkNode, removeConstraint, removeNode2NodeRelations, resetDutyHoursTempActivation, resetLockdownTime, resetSubsequentSlaveNodes, setAllowMoveToReduceFlexTime, setAutoFilterConstraints, setConstraints, setFirstNodeInRouteImportance, setFixCost, setHasRouteDependentVisitDuration, setImportance, setIndividualOfferedNodeMultiplier, setIsCausingIdleTimeCost, setIsDutyHoursIncludesVisitDuration, setIsOfferedNode, setIsOptional, setIsReturnStart, setIsStayNode, setIsWorkNode, setJointVisitDuration, setLastNodeInRouteImportance, setLoad, setLockdownTime, setMinAutoFilterProtectedExecutions, setMinimalVisitDuration, setNodeColor, setNodeDepot, setNodeId, setOptimizable, setOptimizable, setUnassigned, setUnloadAll, setUnloadAllDimension, setVisitDuration, setVisitDurationMillis, setWaitOnEarlyArrival, setWaitOnEarlyArrivalFirstNode, tempIncreaseImplausibleScore, tempSetActiveDutyHours, toString
forceSetId, getConstraintAliasId, getDistMatrixId, getExtraInfo, getLatitude, getLocationId, getLongitude, getNodeConnection, getNodeConnectionKeySet, getNodeConnections, getPosition, getPreferredHoursInteractionController, putNodeConnection, putNodeConnectionFromElement, removeNodeConnection, setConstraintAliasId, setDistMatrixId, setDutyHours, setExtraInfo, setId, setLatitude, setLocationId, setLongitude, setPosition
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forceSetId, getConstraintAliasId, getDistMatrixId, getExtraInfo, getLatitude, getLocationId, getLongitude, getNodeConnection, getNodeConnectionKeySet, getNodeConnections, getPosition, getPreferredHoursInteractionController, putNodeConnection, putNodeConnectionFromElement, removeNodeConnection, setConstraintAliasId, setDistMatrixId, setDutyHours, setExtraInfo, setId, setLatitude, setLocationId, setLongitude, setPosition
public static final int RELATED_ELEMENT_INDEX
public InducedIdleEventNode(String nodeId, IOpeningHours openingHour, Duration duration)
InducedIdleEventNode
.nodeId
- the string ID of the Node
openingHour
- the iOpeningHourduration
- the duration of the idle time
public InducedIdleEventNode(INode2NodeRelation rel, IOpeningHours openingHour, Duration duration)
InducedIdleEventNode
to add to the Node ID
the Relations
to another Node
.rel
- the iNode2NodeRelationopeningHour
- the iOpeningHourduration
- the duration of the idle time
public static String getPartialNodeId(String masterNodeId, String relatedNodeId)
Node ID
and adds the masterNodeId
and the relatedNodeId
.
Used in InducedIdleEventNode(INode2NodeRelation, IOpeningHours, Duration)
to add the IDs
of the MasterNode
and the RelatedNode
to the to the ID
of the InducedIdleEventNode
masterNodeId
- the string ID
of the MasterNode
relatedNodeId
- the string ID
of the RelatedNode
ID
in conjunction with the Master-
and RelatedNode ID
public String getId()
ID
and the time it was created.getId
in interface IOptimizationElement
getId
in class AbstractOptimizationElement
ID String
public static InducedIdleEventNode getShrinkedCopy(InducedIdleEventNode baseEvent, long shinkMillis, long safetyAdditionalDuration)
Node
where the input shinkMillis
and safetyAdditionalDuration
are substracted or added respectively from/to the end of the timeWindow
of the OpeningHours
in
seconds.baseEvent
- the node to shrinkshinkMillis
- the long milliseconds to substract from the end of the OpeningHours
safetyAdditionalDuration
- the long milliseconds to add to the end of the OpeningHours
Node
with the changed TimeWindow
public void setMasterNodeId(String connectedMasterNodeId)
ID
as the MasterNode
.
This method does not actually set up Relations
but only sets the input String
in the
class variable
connectedMasterNodeId
- the string ID
of the MasterNode
public void setRelatedNodeId(String connectedRelatedNodeId)
ID
as the RelatedNode
This method does not actually set up Relations
but only sets the input String
in the
class variable
connectedRelatedNodeId
- the string ID
of the MasterNode
public void setCreationTimeStamp(long creationTimeStamp)
System.currentTimeMillis()
as the TimeStamp
when the InducedIdleEventNode
was created.creationTimeStamp
- the long TimeStamp
public Optional<String> getMasterNodeId()
ID
of the MasterNode
.ID
public Optional<String> getRelatedNodeId()
ID
of the RelatedNode
.ID
public Optional<Long> getCreationTimeStamp()
TimeStamp
of the creation of the InducedIdleEventNode
as created by
System.currentTimeMillis()
.public boolean hasRouteDependentVisitDuration()
INode
hasRouteDependentVisitDuration
in interface INode
hasRouteDependentVisitDuration
in class AbstractNode
Copyright © 2017–2023 DNA Evolutions GmbH. All rights reserved.