public interface IEntityInvokedOperatorController extends Serializable
IOperator
, which last
Operator
was able to realize lower costs
and by what amount.Modifier and Type | Method and Description |
---|---|
IEntityInvokedOperatorController |
copy()
Copies the
IEntityInvokedOperatorController . |
int |
getBenefitCounter()
Gets the counter how many times no lower
costs have been achieved by using an IOperator . |
double |
getCostAdvantage()
Gets the cost that was be saved by using the last beneficial
Operator . |
double |
getLastBeneficialCostAdvantage()
Gets the amount of
cost that was saved by using the last beneficial Operator . |
Optional<com.dna.jopt.revision.operator.IOperator> |
getLastBeneficialInvokedOperator()
Gets the last
IOperator which realized a cost advantage . |
Optional<com.dna.jopt.revision.operator.IOperator> |
getLastInvokedOperator()
Gets the last invoked
IOperator . |
void |
setCostAfterInvocation(double costAfterInvocation)
Updates the last invoked
Operator and the last joined cost if said Operator proved to be
beneficial for the cost . |
void |
setLastInvokedOperator(com.dna.jopt.revision.operator.IOperator op)
Sets the last invoked
IOperator . |
void |
setLastJoinedCost(double lastJoinedCost)
Sets the
cost before the new IOperator was invoked. |
Optional<com.dna.jopt.revision.operator.IOperator> getLastInvokedOperator()
IOperator
.void setLastInvokedOperator(com.dna.jopt.revision.operator.IOperator op)
IOperator
.op
- the iOperator last usedvoid setLastJoinedCost(double lastJoinedCost)
cost
before the new IOperator
was invoked.lastJoinedCost
- the double cost before the Operator
void setCostAfterInvocation(double costAfterInvocation)
Operator
and the last joined cost
if said Operator
proved to be
beneficial for the cost
.costAfterInvocation
- the double new cost after the Operator
double getCostAdvantage()
Operator
.Operator
IEntityInvokedOperatorController copy()
IEntityInvokedOperatorController
.
This is used when copying an IEntity
since the history of the
cost in the OperatorController
is needed.
Optional<com.dna.jopt.revision.operator.IOperator> getLastBeneficialInvokedOperator()
IOperator
which realized a cost advantage
.
If no such Operator
was used, returns an empty Optional
.
Operator
double getLastBeneficialCostAdvantage()
cost
that was saved by using the last beneficial Operator
.int getBenefitCounter()
costs
have been achieved by using an IOperator
.
This counter resets when a beneficial Operator
has been invoked and setCostAfterInvocation(double)
has been called.
Copyright © 2017–2023 DNA Evolutions GmbH. All rights reserved.