createDemand

fun createDemand(itemType: ItemType, amountDemanded: Int = 1, demandName: String? = null): SupplyChainModel.Demand(source)

Creates a new demand within this supply-chain model. The demand starts in inPreparation.

Parameters

itemType

the ItemType of this demand

amountDemanded

units required; must be > 0; defaults to 1

demandName

optional name