public class ZoneNumberConstraint extends AbstractZoneCodeConstraint<ZoneNumber,ZoneNumberQualification>
Modifier and Type | Field and Description |
---|---|
static int |
MAX_ASSUMED_DELTA |
static String |
MY_TITLE |
Constructor and Description |
---|
ZoneNumberConstraint() |
Modifier and Type | Method and Description |
---|---|
com.dna.jopt.assessment.costassessorrestriction.restrictionresult.IEntityRestrictionResult |
assessConstraint(IEntity en,
ILogicEntityRoute route,
INode node,
com.dna.jopt.assessment.costadjustment.IEntityCostAdjuster cad,
com.dna.jopt.assessment.costassessor.IEntityCostAssessor ca,
com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider propertyProvider,
boolean resultRequested)
Assesses the route, checking if the appropriate
qualifications for the constraints are present. |
Optional<ZoneNumberQualification> |
getNodeZoneQualification(INode node) |
String |
getTitle()
Gets the title of the constraint.
|
Optional<IViolation> |
matchCodesAndPenalize(ZoneNumberQualification quali,
List<ZoneNumber> masterCodes,
ILogicEntityRoute route,
com.dna.jopt.assessment.costadjustment.IEntityCostAdjuster cad,
com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider propertyProvider,
boolean resultRequested) |
boolean |
matchZoneCodes(ZoneNumberQualification quali,
List<ZoneNumber> masterCodes) |
static Optional<IViolation> |
setNoMatchCost(ILogicEntityRoute route,
com.dna.jopt.assessment.costadjustment.IEntityCostAdjuster cad,
com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider propertyProvider,
int zoneNumberDelta,
boolean resultRequested) |
String |
toString() |
addZoneCode, getZoneCodes, hasMembers, isHard, isSatisfied, setCodes, setIsHard
public static final int MAX_ASSUMED_DELTA
public static final String MY_TITLE
public String getTitle()
IConstraint
public boolean matchZoneCodes(ZoneNumberQualification quali, List<ZoneNumber> masterCodes)
public Optional<ZoneNumberQualification> getNodeZoneQualification(INode node)
public static Optional<IViolation> setNoMatchCost(ILogicEntityRoute route, com.dna.jopt.assessment.costadjustment.IEntityCostAdjuster cad, com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider propertyProvider, int zoneNumberDelta, boolean resultRequested)
public Optional<IViolation> matchCodesAndPenalize(ZoneNumberQualification quali, List<ZoneNumber> masterCodes, ILogicEntityRoute route, com.dna.jopt.assessment.costadjustment.IEntityCostAdjuster cad, com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider propertyProvider, boolean resultRequested)
public com.dna.jopt.assessment.costassessorrestriction.restrictionresult.IEntityRestrictionResult assessConstraint(IEntity en, ILogicEntityRoute route, INode node, com.dna.jopt.assessment.costadjustment.IEntityCostAdjuster cad, com.dna.jopt.assessment.costassessor.IEntityCostAssessor ca, com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider propertyProvider, boolean resultRequested)
IConstraint
qualifications
for the constraints
are present.
The boolean true
saves the data.
en
- entityroute
- the iLogicEntityRoutenode
- nodecad
- iEntityCostAdjusterca
- capropertyProvider
- iPropertyProviderresultRequested
- the boolean whether to save the results of the routeCopyright © 2017–2023 DNA Evolutions GmbH. All rights reserved.