Hi,
class Task() : PreviousTaskOrTool() {
@CustomShadowVariable(
variableListenerClass = ResponseTimeUpdatingVariableListener::class,
sources = [PlanningVariableReference(variableName = "previousTaskOrTool")]
)
var estimatedWaiting: Duration? = null
}
How can I set a custom property in my ResponseTimeUpdatingVariableListener implementation? Following the documentation, I could add a setter
...
long processOffsetSeconds;
public void setProcessOffsetSeconds(long processOffsetSeconds) {
this.processOffsetSeconds = processOffsetSeconds;
}
...
However, it's unclear to me how to configure the value when creating the solver:
SolverConfig()
.withSolutionClass(ProductionSchedule::class.java)
. <how can we set the process offset here>
In case this approach is not supported, is there an alternative solution to configure classes within an optaplanner solver?
I'd appreciate any pointer or support!
Thanks & kind regards,
Holger