This changes the type of Instant.step from an int to a ModelStep class, which can be extended to support measurement units. At the moment the only unit supported is hour.
It's a backwards-compatible changes, besides a change in the format of products.json, which should enable to introduce part-hour steps and hopefully also other kinds of step in the future.
This changes the type of
Instant.step
from an int to aModelStep
class, which can be extended to support measurement units. At the moment the only unit supported ishour
.It's a backwards-compatible changes, besides a change in the format of
products.json
, which should enable to introduce part-hour steps and hopefully also other kinds of step in the future.