DemandMessage

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

demandFiller

the filler that produced this message

timeStamp

simulation time at which the message was created

canFillItemType

true if the filler is willing to fill demands of the negotiated item type

requestStatus

the proposed status for the demand

requestFillAmount

units the filler would allocate now; must be >= 0

inventory

optional view of the filler's inventory

mayPartiallyFillDemands
mayBackLogDemands

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)

Properties

Link copied to clipboard
open override val canFillItemType: Boolean
Link copied to clipboard
open override val demandFiller: DemandFillerIfc
Link copied to clipboard
open override val inventory: InventoryIfc?
Link copied to clipboard
open override val mayBackLogDemands: Boolean
Link copied to clipboard
open override val mayPartiallyFillDemands: Boolean
Link copied to clipboard
open override val requestFillAmount: Int
Link copied to clipboard
open override val requestStatus: DemandStatusCode
Link copied to clipboard
open override val timeStamp: Double