Interface INodeRelation
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
INode2MultiNodesRelation
,INode2NodeRelation
,INode2NodesMultiDayRelation
,INode2NodeTempusRelation
,INode2NodeVisitorRelation
- All Known Implementing Classes:
AbstracNode2NodeRelation
,AbstractNode2NodeTempusRelation
,NegativeRelativeTimeWindow2RelatedNodeRelation
,Node2NodesMultiDayRelation
,RelativeTimeWindow2RelatedNodeRelation
,RelativeVisitor2RelatedNodeRelation
-
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 iPropertyProvider, 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.Gets theAbstracNode2NodeRelation.masterNode
boolean
boolean
Needs full job level evaluation.void
setMasterNode
(INode masterNode) Sets theNode
as aMasterNode
which has to be given service before the relatedRelatedNode
.void
setRelationMode
(AbstracNode2NodeRelation.RelationMode relationMode)
-
Method Details
-
setMasterNode
Sets theNode
as aMasterNode
which has to be given service before the relatedRelatedNode
.- Parameters:
masterNode
- themasterNode
to be set
-
getMasterNode
INode getMasterNode()Gets theAbstracNode2NodeRelation.masterNode
- Returns:
- the masterNode
-
checkRelation
com.dna.jopt.assessment.costassessorrestriction.restrictionresult.IEntityRestrictionResult checkRelation(IEntity en, com.dna.jopt.assessment.costadjustment.IEntityCostAdjuster cad, com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider iPropertyProvider, 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.- Parameters:
en
- the IEntitycad
- the IEntityCostAdjusteriPropertyProvider
- the IPropertyproviderresultRequested
- the boolean- Returns:
- the cost of restricting the optimizer in visiting the master- and the related node
-
needsFullJobLevelEvaluation
boolean needsFullJobLevelEvaluation()Needs full job level evaluation.In case the relation needs to access for example arrival times etc. of all related nodes e have to save this data for the relation. The cost assessor will ask if the relation requires this and will save the data for the nodes carrying this relation. It is important that every node that is part of a relation is also carrying the relation as object.
- Returns:
- boolean true if successful
-
isFilterRelatedNodes
boolean isFilterRelatedNodes()- Returns:
- the boolean isForceFilterRelatedNodes
-
setRelationMode
-
getRelationMode
AbstracNode2NodeRelation.RelationMode getRelationMode()
-