11package org .acme .projectjobschedule .domain ;
22
3- import java .util .Arrays ;
4- import java .util .List ;
5- import java .util .Objects ;
6-
73import ai .timefold .solver .core .api .domain .entity .PlanningEntity ;
84import ai .timefold .solver .core .api .domain .entity .PlanningPin ;
95import ai .timefold .solver .core .api .domain .lookup .PlanningId ;
10- import ai .timefold .solver .core .api .domain .valuerange .CountableValueRange ;
11- import ai .timefold .solver .core .api .domain .valuerange .ValueRangeFactory ;
126import ai .timefold .solver .core .api .domain .valuerange .ValueRangeProvider ;
137import ai .timefold .solver .core .api .domain .variable .PlanningVariable ;
148import ai .timefold .solver .core .api .domain .variable .ShadowSources ;
159import ai .timefold .solver .core .api .domain .variable .ShadowVariable ;
16- import ai .timefold .solver .core .api .domain .variable .ShadowVariablesInconsistent ;
17-
18- import org .acme .projectjobschedule .domain .solver .DelayStrengthComparator ;
19-
2010import com .fasterxml .jackson .annotation .JsonIdentityInfo ;
2111import com .fasterxml .jackson .annotation .JsonIdentityReference ;
2212import com .fasterxml .jackson .annotation .JsonIgnore ;
2313import com .fasterxml .jackson .annotation .ObjectIdGenerators ;
14+ import org .acme .projectjobschedule .domain .solver .DelayStrengthComparator ;
15+
16+ import java .util .Arrays ;
17+ import java .util .List ;
18+ import java .util .Objects ;
19+ import java .util .stream .IntStream ;
2420
2521@ PlanningEntity
2622@ JsonIdentityInfo (scope = Allocation .class , generator = ObjectIdGenerators .PropertyGenerator .class , property = "id" )
@@ -87,8 +83,8 @@ public List<ExecutionMode> getExecutionModeRange() {
8783
8884 @ ValueRangeProvider
8985 @ JsonIgnore
90- public CountableValueRange <Integer > getDelayRange () {
91- return ValueRangeFactory . createIntValueRange (0 , 500 );
86+ public List <Integer > getDelayRange () {
87+ return IntStream . range (0 , 500 ). boxed (). toList ( );
9288 }
9389
9490 // ************************************************************************
@@ -109,7 +105,7 @@ public boolean isPinned() {
109105
110106 /**
111107 * Sources and sinks will always be pinned.
112- *
108+ *
113109 * @param pinned Ignored unless {@link #getJob()}'s {@link JobType} is {@link JobType#STANDARD}.
114110 */
115111 public void setPinned (boolean pinned ) {
@@ -131,7 +127,7 @@ public Job getJob() {
131127
132128 /**
133129 * Resets {@link #isPinned()}.
134- *
130+ *
135131 * @param job never null
136132 */
137133 public void setJob (Job job ) {
0 commit comments