public class EventNode extends AbstractNode
Eventnodes
which have no location. hasRealGeoLocation()
and isPillarNode()
therefore return false
.IOptimizationElement.OptimizationElementFlavour
dutyHours
Constructor and Description |
---|
EventNode(String nodeId,
IDutyHours[] openingHours,
int visitDuration,
int priority)
Deprecated.
please use
EventNode(String, IOpeningHours, Duration, int) or EventNode(String, List, Duration, int) instead. |
EventNode(String nodeId,
IDutyHours openingHour,
int visitDuration,
int priority)
Deprecated.
please use
EventNode(String, IOpeningHours, Duration, int) instead. |
EventNode(String nodeId,
IOpeningHours openingHour,
Duration visitDuration,
int priority)
The
EventNode has no location and cannot be a Pillar . |
EventNode(String nodeId,
List<IDutyHours> openingHours,
int visitDuration,
int priority)
Deprecated.
please use
EventNode(String, IOpeningHours, Duration, int) instead. |
EventNode(String nodeId,
List<IOpeningHours> openingHours,
Duration visitDuration,
int priority)
The
EventNode has no location and cannot be a Pillar . |
Modifier and Type | Method and Description |
---|---|
IOptimizationElement.OptimizationElementFlavour |
getFlavour()
Gets the flavour which spells out the kind of
Node of the element. |
boolean |
hasRealGeoLocation()
Gets whether this
Node has a location. |
boolean |
isPartialExchangeIdleForDrivingTime() |
boolean |
isPillarNode()
Checks, whether this
Node is a PillarNode . |
void |
setIsPartialExchangeIdleForDrivingTime(boolean isPartialExchangeIdleForDrivingTime) |
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, hasRouteDependentVisitDuration, 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, getId, 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, getId, getLatitude, getLocationId, getLongitude, getNodeConnection, getNodeConnectionKeySet, getNodeConnections, getPosition, getPreferredHoursInteractionController, putNodeConnection, putNodeConnectionFromElement, removeNodeConnection, setConstraintAliasId, setDistMatrixId, setDutyHours, setExtraInfo, setId, setLatitude, setLocationId, setLongitude, setPosition
@Deprecated public EventNode(String nodeId, List<IDutyHours> openingHours, int visitDuration, int priority)
EventNode(String, IOpeningHours, Duration, int)
instead.nodeId
- the string ID of the nodeopeningHours
- the list of openingHours when the Node can be given servicevisitDuration
- the int duration of the servicepriority
- the int priority@Deprecated public EventNode(String nodeId, IDutyHours openingHour, int visitDuration, int priority)
EventNode(String, IOpeningHours, Duration, int)
instead.nodeId
- the string ID of the NodeopeningHour
- the iDutyhours when the node can be given servicevisitDuration
- the int duration of the servicepriority
- the int prioritypublic EventNode(String nodeId, IOpeningHours openingHour, Duration visitDuration, int priority)
EventNode
has no location and cannot be a Pillar
. An example for an EventNode
would be a telephone conference.
Implementation example:
// Define Hours
List<IOpeningHours> telCoOpeningHours = new ArrayList<>();
telCoOpeningHours.add(
new OpeningHours(
ZonedDateTime.of(2019, SEPTEMBER.getValue(), 3, 9, 30, 0, 0, ZoneId.of("Europe/Berlin")),
ZonedDateTime.of(2019, SEPTEMBER.getValue(), 3, 12, 0, 0, 0, ZoneId.of("Europe/Berlin"))));
Duration conferenceDuration = Duration.ofMinutes(45);
// Define EventNode
EventNode telCo =
new EventNode("telCo DNA", telCoOpeningHours, conferenceDuration, 1);
nodeId
- the string ID of the NodeopeningHour
- the iOpeningHours when the node should be visitedvisitDuration
- the duration of the visitpriority
- the int priority of the nodepublic EventNode(String nodeId, List<IOpeningHours> openingHours, Duration visitDuration, int priority)
EventNode
has no location and cannot be a Pillar
. An example for an EventNode
would be a telephone conference.
The difference between this constructor and EventNode(String, IOpeningHours, Duration, int)
is
that the latter is setting the IOpeningHours
in the following way: this.setDutyHours(new ArrayList<>(Collections.singletonList(openingHour)));
// Define Hours
List<IOpeningHours> telCoOpeningHours = new ArrayList<>();
telCoOpeningHours.add(
new OpeningHours(
ZonedDateTime.of(2019, SEPTEMBER.getValue(), 3, 9, 30, 0, 0, ZoneId.of("Europe/Berlin")),
ZonedDateTime.of(2019, SEPTEMBER.getValue(), 3, 12, 0, 0, 0, ZoneId.of("Europe/Berlin"))));
Duration conferenceDuration = Duration.ofMinutes(45);
// Define EventNode
EventNode telCo =
new EventNode("telCo DNA", telCoOpeningHours, conferenceDuration, 1);
nodeId
- the string ID of the nodeopeningHours
- the iOpeningHours when service can be give to the nodevisitDuration
- the duration of the visitpriority
- the int priority@Deprecated public EventNode(String nodeId, IDutyHours[] openingHours, int visitDuration, int priority)
EventNode(String, IOpeningHours, Duration, int)
or EventNode(String, List, Duration, int)
instead.nodeId
- the node idopeningHours
- the opening hoursvisitDuration
- the visit durationpriority
- the priorityLEGACY CONSTRUCTOR
Instantiates a new time window geo node.
PLEASE DO NOT USE THIS CONSTRUCTOR ANYMORE! IT WILL BE REMOVED IN FUTURE VERSIONS
public IOptimizationElement.OptimizationElementFlavour getFlavour()
IOptimizationElement
Node
of the element.public boolean hasRealGeoLocation()
Node
has a location. Since this is an Eventnode
the response always
is false
.EventNode
public boolean isPillarNode()
Node
is a PillarNode
. Since this is an EventNode
the
response always is false
.EventNode
IPillarEventNode
public void setIsPartialExchangeIdleForDrivingTime(boolean isPartialExchangeIdleForDrivingTime)
public boolean isPartialExchangeIdleForDrivingTime()
Copyright © 2017–2023 DNA Evolutions GmbH. All rights reserved.