public abstract class AbstractAutoFilterConstraint extends Object implements IAutoFilterNodeConstraint
Constructor and Description |
---|
AbstractAutoFilterConstraint() |
Modifier and Type | Method and Description |
---|---|
abstract double |
getAttachedCost(INode node,
ILogicEntityRoute curRoute,
IEntity en,
com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider provider) |
INodeFilterReason |
getFilterReason(INode node)
Gets the
filter reason why the Node was filtered. |
abstract double |
getQuotient(IAutoFilterViolationAndConstrainCollector collector) |
abstract String |
getTitle() |
boolean |
isAverageFilteringAllowed()
Checks whether
average filtering is allowed for cases where the Route has problems but
no single Node is above the threshold . |
boolean |
isInConstraintState(INode node,
ILogicEntityRoute curRoute,
IEntity en,
com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider provider)
Checks whether the
Node (or the Route of that Node ) is in a constraint state by
checking whether the costs from constraints are higher than 0. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getThreshold, getThresholdLastRun
public INodeFilterReason getFilterReason(INode node)
IAutoFilterNodeConstraint
filter reason
why the Node
was filtered.getFilterReason
in interface IAutoFilterNodeConstraint
node
- the nodepublic abstract double getQuotient(IAutoFilterViolationAndConstrainCollector collector)
public boolean isInConstraintState(INode node, ILogicEntityRoute curRoute, IEntity en, com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider provider)
IAutoFilterNodeConstraint
Node
(or the Route
of that Node
) is in a constraint state
by
checking whether the costs from constraints
are higher than 0.
If a Route
in total has additional costs
for being late but is on time on a specific Node
isInConstraintState()
would return true
on a not late Node
nonetheless.
isInConstraintState
in interface IAutoFilterNodeConstraint
node
- the iNodecurRoute
- the iLogicEntityRouteen
- the iEntityprovider
- the providerpublic abstract double getAttachedCost(INode node, ILogicEntityRoute curRoute, IEntity en, com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider provider)
public abstract String getTitle()
public boolean isAverageFilteringAllowed()
IAutoFilterNodeConstraint
average filtering
is allowed for cases where the Route
has problems but
no single Node
is above the threshold
. Average filtering
filters the most problematic
Node
even tough it is not above the threshold
.isAverageFilteringAllowed
in interface IAutoFilterNodeConstraint
Copyright © 2017–2023 DNA Evolutions GmbH. All rights reserved.