Write simple rota generation procedure
This commit is contained in:
@@ -29,4 +29,10 @@ struct slot_result {
|
||||
struct allocation allocations[MAX_JOBS];
|
||||
};
|
||||
|
||||
void generate_rota(struct slot_result *rota_out);
|
||||
void generate_allocation(int slot, int job, struct allocation *allocation_out);
|
||||
bool satisfies_allocation_constraints(const struct allocation *allocation);
|
||||
bool satisfies_slot_constraints(const struct slot_result *slot);
|
||||
void print_rota(const struct slot_result *rota);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user