AllocationRuleIfc

fun interface AllocationRuleIfc

Function to determine how to allocate requirement for units across a list of resources that have sufficient available units to meet the amount needed.

Inheritors

Functions

Link copied to clipboard
abstract fun makeAllocations(amountNeeded: Int, resourceList: List<Resource>): Map<Resource, Int>

The method assumes that the provided list of resources has enough units available to satisfy the needs of the request.