Repository navigation
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the model’s transition to explicit interfaces and score handling.
No open issues 🎉
What changed in this PR
Updates the school timetabling service model to remove its dependency on AbstractSimpleModel.
Changes:
- Implements
ModelInput,SolverModel<HardMediumSoftScore>, andModelOutputdirectly. - Adds an explicit planning score field and accessors, excluding the score from JSON.
| File | Description |
|---|---|
getting-started/service/src/main/java/com/acme/schooltimetabling/domain/Timetable.java |
Replaces the base class with explicit interfaces and score handling. |
Review effort: Balanced
7619880 to
62c3e86
Compare
|
|
||
| @PlanningSolution | ||
| public class Timetable extends AbstractSimpleModel { | ||
| public class Timetable implements SolverModel<HardMediumSoftScore> { |
|
As it stands, this pull request would leave the Solver documentation stale in the place below. An automated check found it and can be wrong. 1.
Suggested edit: the easier fix is to make the quickstart match the docs: import ai.timefold.solver.core.api.score.HardMediumSoftScore;
import ai.timefold.solver.service.definition.api.SolverModel;
import com.fasterxml.jackson.annotation.JsonIgnore;
@PlanningSolution
public class Timetable implements SolverModel<HardMediumSoftScore> {The interface list at lines 86–89, the sentence at line 273 and the Setup list in Where the fix goes: the docs live in A new commit on the branch updates this comment. Drift that is still there when the group merges gets a docs pull request against Generated by Solver Docs Drift Review with Claude. |

Depends on TimefoldAI/timefold-solver#2874.