Timefold Solver is an AI constraint solver for Python to optimize the Vehicle Routing Problem, Employee Rostering, Maintenance Scheduling, Task Assignment, School Timetabling, Cloud Optimization, Conference Scheduling, Job Shop Scheduling, Bin Packing and many more planning problems.
Describe the solution you'd like
The ability to annotate a getter/setter function pair for annotations that require setting fields, like PlanningVariable or PlanningEntityCollection:
Additional context
Useful for whoever is migrating from optapy.
Note that Java will check for method names "get..." and "set...", so we will need to generate two additional methods. However, attributes also generate getter and setter methods, so it should has a prefix to distinguish it from the attribute getter/setter.
Is your feature request related to a problem? Please describe. See https://github.com/TimefoldAI/timefold-solver-python/issues/86
Describe the solution you'd like The ability to annotate a getter/setter function pair for annotations that require setting fields, like
PlanningVariable
orPlanningEntityCollection
:Describe alternatives you've considered None
Additional context Useful for whoever is migrating from
optapy
.Note that Java will check for method names "get..." and "set...", so we will need to generate two additional methods. However, attributes also generate getter and setter methods, so it should has a prefix to distinguish it from the attribute getter/setter.