Class AbstracNode2NodeRelation
java.lang.Object
com.dna.jopt.member.unit.relation.node2node.AbstracNode2NodeRelation
- All Implemented Interfaces:
INode2NodeRelation
,INodeRelation
,Serializable
- Direct Known Subclasses:
AbstractNode2NodeTempusRelation
,Node2NodesMultiDayRelation
,RelativeVisitor2RelatedNodeRelation
- See Also:
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.dna.jopt.assessment.costassessorrestriction.restrictionresult.IEntityRestrictionResult
checkRelation
(IEntity en, com.dna.jopt.assessment.costadjustment.IEntityCostAdjuster cad, com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider propertyProvider, boolean resultRequested) Checks the relation of the masternode and the related node, returns the joined cost of the violations if the masternode and the related node could not be visited.static Optional<ILogicRouteElementDetailItem>
Gets themasterNode
Deprecated.static Optional<ILogicEntityRoute>
boolean
boolean
void
setMasterNode
(INode masterNode) Sets theNode
as aMasterNode
which has to be given service before the relatedRelatedNode
.void
setRelatedNode
(INode relatedNode) Sets theNode
as aRelatedNode
which has to be given service after the relatedMasterNode
.void
setRelatedNodes
(List<INode> relatedNodes) void
setRelationMode
(AbstracNode2NodeRelation.RelationMode relationMode) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.dna.jopt.member.unit.relation.node2node.INode2NodeRelation
checkRelation
Methods inherited from interface com.dna.jopt.member.unit.relation.node2node.INodeRelation
needsFullJobLevelEvaluation
-
Constructor Details
-
AbstracNode2NodeRelation
public AbstracNode2NodeRelation()
-
-
Method Details
-
setMasterNode
Description copied from interface:INodeRelation
Sets theNode
as aMasterNode
which has to be given service before the relatedRelatedNode
.- Specified by:
setMasterNode
in interfaceINodeRelation
- Parameters:
masterNode
- themasterNode
to be set
-
getMasterNode
Description copied from interface:INodeRelation
Gets themasterNode
- Specified by:
getMasterNode
in interfaceINodeRelation
- Returns:
- the masterNode
-
setRelationMode
- Specified by:
setRelationMode
in interfaceINodeRelation
-
getRelationMode
- Specified by:
getRelationMode
in interfaceINodeRelation
-
setRelatedNode
Description copied from interface:INode2NodeRelation
Sets theNode
as aRelatedNode
which has to be given service after the relatedMasterNode
.- Specified by:
setRelatedNode
in interfaceINode2NodeRelation
- Parameters:
relatedNode
- therelatedNode
to be set
-
getRelatedNode
Deprecated.- Specified by:
getRelatedNode
in interfaceINode2NodeRelation
- Returns:
- the relatedNode
-
setRelatedNodes
- Specified by:
setRelatedNodes
in interfaceINode2NodeRelation
-
getRelatedNodes
- Specified by:
getRelatedNodes
in interfaceINode2NodeRelation
-
hasValidRelatedItem
public boolean hasValidRelatedItem()- Specified by:
hasValidRelatedItem
in interfaceINode2NodeRelation
-
isFilterRelatedNodes
public boolean isFilterRelatedNodes()- Specified by:
isFilterRelatedNodes
in interfaceINodeRelation
- Returns:
- the boolean isForceFilterRelatedNodes
-
checkRelation
public com.dna.jopt.assessment.costassessorrestriction.restrictionresult.IEntityRestrictionResult checkRelation(IEntity en, com.dna.jopt.assessment.costadjustment.IEntityCostAdjuster cad, com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider propertyProvider, boolean resultRequested) Description copied from interface:INodeRelation
Checks the relation of the masternode and the related node, returns the joined cost of the violations if the masternode and the related node could not be visited.- Specified by:
checkRelation
in interfaceINodeRelation
- Parameters:
en
- the IEntitycad
- the IEntityCostAdjusterpropertyProvider
- the IPropertyproviderresultRequested
- the boolean- Returns:
- the cost of restricting the optimizer in visiting the master- and the related node
-
getRouteOfElement
-
getDetailsOfElement
public static Optional<ILogicRouteElementDetailItem> getDetailsOfElement(IEntity en, IOptimizationElement e)
-