You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: processscheduler/resource_constraint.py
+15-1Lines changed: 15 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -378,6 +378,13 @@ class ResourcePeriodicallyInterrupted(ResourceConstraint):
378
378
- list_of_time_intervals: A list of time intervals during which the resource is interrupting any task.
379
379
For example, [(0, 2), (5, 8)] represents time intervals from 0 to 2 and from 5 to 8.
380
380
- optional (bool, optional): Whether the constraint is optional (default is False).
381
+
- period: The length of one period after which to repeat the list of time intervals.
382
+
For example, setting this to 5 with [(2, 4)] gives unavailabilities at (2, 4), (7, 9), (12, 14), ...
383
+
- start: The start after which repeating the list of time intervals is active (default is 0).
384
+
- offset: The shift of the repeated list of time intervals (default is 0).
385
+
It might be desired to set also the start parameter to the same value, as otherwise the pattern shifts in from the left or the right into the schedule.
386
+
- end: The end until which repeating the list of time intervals is activate (default is None).
387
+
- optional (bool, optional): Whether the constraint is optional (default is False).
:param list_of_time_intervals: A list of time intervals during which the resource is interrupting any task.
396
403
For example, [(0, 2), (5, 8)] represents time intervals from 0 to 2 and from 5 to 8.
397
404
:param optional: Whether the constraint is optional (default is False).
405
+
:param period: The length of one period after which to repeat the list of time intervals.
406
+
For example, setting this to 5 with [(2, 4)] gives unavailabilities at (2, 4), (7, 9), (12, 14), ...
407
+
:param start: The start after which repeating the list of time intervals is active (default is 0).
408
+
:param offset: The shift of the repeated list of time intervals (default is 0).
409
+
It might be desired to set also the start parameter to the same value, as otherwise the pattern shifts in from the left or the right into the schedule.
410
+
:param end: The end until which repeating the list of time intervals is activate (default is None).
411
+
:param optional: Whether the constraint is optional (default is False).
0 commit comments