public interface INodeRelation extends Serializable
Modifier and Type | Method and Description |
---|---|
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.
|
INode |
getMasterNode()
Gets the
AbstracNode2NodeRelation.masterNode |
AbstracNode2NodeRelation.RelationMode |
getRelationMode() |
boolean |
isFilterRelatedNodes() |
boolean |
needsFullJobLevelEvaluation()
Needs full job level evaluation.
|
void |
setMasterNode(INode masterNode)
Sets the
Node as a MasterNode which has to be given service before the related
RelatedNode . |
void |
setRelationMode(AbstracNode2NodeRelation.RelationMode relationMode) |
void setMasterNode(INode masterNode)
Node
as a MasterNode
which has to be given service before the related
RelatedNode
.masterNode
- the masterNode
to be setINode getMasterNode()
AbstracNode2NodeRelation.masterNode
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)
en
- the IEntitycad
- the IEntityCostAdjusteriPropertyProvider
- the IPropertyproviderresultRequested
- the booleanboolean needsFullJobLevelEvaluation()
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.
boolean isFilterRelatedNodes()
void setRelationMode(AbstracNode2NodeRelation.RelationMode relationMode)
AbstracNode2NodeRelation.RelationMode getRelationMode()
Copyright © 2017–2023 DNA Evolutions GmbH. All rights reserved.