tpaviot / ProcessScheduler

A Python package for automatic and optimized resource scheduling
https://processscheduler.github.io/
GNU General Public License v3.0
58 stars 17 forks source link

Adding a Fixed Duration Interruptible Task #143

Open jbdyn opened 5 months ago

jbdyn commented 5 months ago

Hi @tpaviot,

in #142 the ResourceInterruptible and ResourcePeriodicallyInterruptible resource constraints have been added and they work well with the existing Task variations: VariableDurationTask spans over the interruption intervals whereas for the other task classes, the interrupting constraints act like ResourceUnavailable and ResourcePeriodicallyUnavailable.

The VariableDurationTask brought my project visualizer a big step forward, but since there is no way to give an exact duration with respect to overlapped periods, I needed to implement a new FixedDurationInterruptibleTask.
Here it is.

What's your opinion?

jbdyn commented 5 months ago

tests are still missing