Demand Message
data class DemandMessage @JvmOverloads constructor(val demandFiller: DemandFillerIfc, val timeStamp: Double, val canFillItemType: Boolean = false, val requestStatus: DemandStatusCode = DemandStatusCode.NoStatus, val requestFillAmount: Int = 0, val inventory: InventoryIfc? = null, val mayPartiallyFillDemands: Boolean = false, val mayBackLogDemands: Boolean = false) : DemandMessageIfc(source)
Default implementation of DemandMessageIfc. Returned by DemandFillerIfc implementations from their negotiate path.
Parameters
demand Filler
the filler that produced this message
time Stamp
simulation time at which the message was created
can Fill Item Type
true if the filler is willing to fill demands of the negotiated item type
request Status
the proposed status for the demand
request Fill Amount
units the filler would allocate now; must be >= 0
inventory
optional view of the filler's inventory
may Partially Fill Demands
may Back Log Demands
see DemandMessageIfc.mayBackLogDemands
See sc.inventorylayer.DemandMessage
Constructors
Link copied to clipboard
constructor(demandFiller: DemandFillerIfc, timeStamp: Double, canFillItemType: Boolean = false, requestStatus: DemandStatusCode = DemandStatusCode.NoStatus, requestFillAmount: Int = 0, inventory: InventoryIfc? = null, mayPartiallyFillDemands: Boolean = false, mayBackLogDemands: Boolean = false)