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
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.dna.jopt.assessment.costassessorrestriction.restrictionresult.IEntityRestrictionResultcheckRelation(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 themasterNodeDeprecated.static Optional<ILogicEntityRoute>booleanbooleanvoidsetMasterNode(INode masterNode) Sets theNodeas aMasterNodewhich has to be given service before the relatedRelatedNode.voidsetRelatedNode(INode relatedNode) Sets theNodeas aRelatedNodewhich has to be given service after the relatedMasterNode.voidsetRelatedNodes(List<INode> relatedNodes) voidsetRelationMode(AbstracNode2NodeRelation.RelationMode relationMode) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.dna.jopt.member.unit.relation.node2node.INode2NodeRelation
checkRelationMethods inherited from interface com.dna.jopt.member.unit.relation.node2node.INodeRelation
needsFullJobLevelEvaluation
-
Constructor Details
-
AbstracNode2NodeRelation
public AbstracNode2NodeRelation()
-
-
Method Details
-
setMasterNode
Description copied from interface:INodeRelationSets theNodeas aMasterNodewhich has to be given service before the relatedRelatedNode.- Specified by:
setMasterNodein interfaceINodeRelation- Parameters:
masterNode- themasterNodeto be set
-
getMasterNode
Description copied from interface:INodeRelationGets themasterNode- Specified by:
getMasterNodein interfaceINodeRelation- Returns:
- the masterNode
-
setRelationMode
- Specified by:
setRelationModein interfaceINodeRelation
-
getRelationMode
- Specified by:
getRelationModein interfaceINodeRelation
-
setRelatedNode
Description copied from interface:INode2NodeRelationSets theNodeas aRelatedNodewhich has to be given service after the relatedMasterNode.- Specified by:
setRelatedNodein interfaceINode2NodeRelation- Parameters:
relatedNode- therelatedNodeto be set
-
getRelatedNode
Deprecated.- Specified by:
getRelatedNodein interfaceINode2NodeRelation- Returns:
- the relatedNode
-
setRelatedNodes
- Specified by:
setRelatedNodesin interfaceINode2NodeRelation
-
getRelatedNodes
- Specified by:
getRelatedNodesin interfaceINode2NodeRelation
-
hasValidRelatedItem
public boolean hasValidRelatedItem()- Specified by:
hasValidRelatedItemin interfaceINode2NodeRelation
-
isFilterRelatedNodes
public boolean isFilterRelatedNodes()- Specified by:
isFilterRelatedNodesin 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:INodeRelationChecks 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:
checkRelationin 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)
-