in gridengine/src/gridengine/allocation_rules.py [0:0]
def value_of(allocation_rule: str) -> "AllocationRule":
if allocation_rule == "$fill_up":
return FillUp()
elif allocation_rule == "$round_robin":
return RoundRobin()
elif allocation_rule == "$pe_slots":
return PESlots()
elif allocation_rule.isdigit():
return FixedProcesses(allocation_rule)
else:
raise RuntimeError("Unknown allocation rule {}".format(allocation_rule))