graphhopper/jsprit

add activities to job interface

oblonski opened this issue · 4 comments

This allows the user to easily retrieve job related information without always turning the job into either a service or a shipment, i.e. we get rid of a number of "instanceof Shipment" stuff.

dd3f29b and related commits

This and this illustrates the improvement.

This and this illustrates the improvement.

That looks great! :)

... and it should not break anything even though it is defined in job interface since the job interface is actually a Schummelinterface, i.e. if you want to solve a problem with jsprit, you need to either use Service or Shipment and you are not yet allowed to implement your own job - as far as I can judge it now.