sardine.scheduling package
Submodules
sardine.scheduling.assignment_finder module
- class sardine.scheduling.assignment_finder.AssignmentFinder[source]
Bases:
object- classmethod next_assignment(vessel, acquisition)[source]
Gets the next activities to assign using ‘_pop_next_activities’, passing it the given acquisition and vessel Creates the model using ‘_model_for_vessel’, passing it the given source and receiver models, and the given vessel Gets the upcoming activities using ‘_read_next_activities’, passing it the given acquisition, vessel and vessel number If there are activities to assign, it assigns work using ‘_assign_work’, passing it the activities to assign, the model and the given vessel If the waiting point for the vessel was reached, it assigns transit or wait using ‘_assign_transit_or_wait’, passing it the upcoming activities, the model and the given vessel Else (no activities to assign, not in waiting point) it sets the vessel to wait with ‘make_waiting’