make Allocations
open override 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.
Return
the amount to allocate from each resource as a map
Parameters
amount Needed
the amount needed from resources
resource List
list of resources to be allocated from