eineving / truckerboys

3 stars 3 forks source link

Add rest duration getters #52

Open eineving opened 10 years ago

eineving commented 10 years ago

Implement methods in EURegulations where you get required rest duration

s-petersson commented 10 years ago

There is no implementation for checking if the driver is currently on a break or just outside the truck doing paper work or other work. We therefore need to redo 'SessionHistory'.

s-petersson commented 10 years ago

'SessionHistory' is reimplemented and everything is changed to work according to the new implementation.

Basic functionality to get session break-times is also implemented. Still need to implement time left on daily/weekly rests though.

s-petersson commented 10 years ago

Implementation of getting time left on daily break is almost fully implemented. Weekly break time still needs to be taken care of though.

s-petersson commented 10 years ago

Andreas finished the last getTimeLeftOnBreak method.