public interface INode2NodeRelation extends INodeRelation, Serializable
INode2NodeRelation
allows to define
MasterNodes
and RelatedNodes
. A MasterNode
has to be given service before a
RelatedNode
. For specifying the timewindow within which the work has
to be done as well as a possible minimum time between the two Nodes
please see
RelativeTimeWindow2RelatedNodeRelation
.
Implementation example in which the second Node
has to be visited
within two hours of the first one:
{ @code INode2NodeRelation relation = new RelativeTimeWindow2RelatedNodeRelation(Duration.ofSeconds(0), Duration.ofHours(2)); relation.setMasterNode(aachen); relation.setRelatedNode(essen); aachen.addNode2NodeRelation(relation); essen.addNode2NodeRelation(relation); }For information whether the work has to be done within the specified time or the
Resource
has to have arrived at the RelatedNode
within
the specified time see
INode2NodeTempusRelation.setTimeComparisonJuncture(boolean, boolean)
.Modifier and Type | Method and Description |
---|---|
com.dna.jopt.assessment.costassessorrestriction.restrictionresult.IEntityRestrictionResult |
checkRelation(IEntity en,
com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider propertyProvider,
com.dna.jopt.assessment.costadjustment.IEntityCostAdjuster cad,
ILogicRouteElementDetailItem masterDetails,
List<ILogicRouteElementDetailItem> relatedDetails,
boolean resultRequested) |
INode |
getRelatedNode()
Deprecated.
Gets the relatedNode.
|
List<INode> |
getRelatedNodes() |
boolean |
hasValidRelatedItem() |
void |
setRelatedNode(INode relatedNode)
Sets the
Node as a RelatedNode which has to be given service
after the related MasterNode . |
void |
setRelatedNodes(List<INode> relatedNodes) |
checkRelation, getMasterNode, getRelationMode, isFilterRelatedNodes, needsFullJobLevelEvaluation, setMasterNode, setRelationMode
void setRelatedNode(INode relatedNode)
Node
as a RelatedNode
which has to be given service
after the related MasterNode
.relatedNode
- the relatedNode
to be setINode getRelatedNode()
com.dna.jopt.assessment.costassessorrestriction.restrictionresult.IEntityRestrictionResult checkRelation(IEntity en, com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider propertyProvider, com.dna.jopt.assessment.costadjustment.IEntityCostAdjuster cad, ILogicRouteElementDetailItem masterDetails, List<ILogicRouteElementDetailItem> relatedDetails, boolean resultRequested)
boolean hasValidRelatedItem()
Copyright © 2017–2023 DNA Evolutions GmbH. All rights reserved.