DemandMessageIfc

Information returned by a DemandFillerIfc in response to a negotiation request for a single demand. A filler that cannot negotiate returns null; otherwise it returns a DemandMessageIfc describing what would happen if the demand were sent at the current time.

All responses are relative to the demand instance handed to the filler.

See sc.inventorylayer.DemandMessageIfc

Inheritors

Properties

Link copied to clipboard
abstract val canFillItemType: Boolean

True if the filler is willing to fill demands of this item type.

Link copied to clipboard

The filler that produced this message.

Link copied to clipboard
abstract val inventory: InventoryIfc?

An optional view of the filler's underlying inventory state.

Link copied to clipboard

Whether the filler may backlog demands. Does not imply that backlogging will occur — only that it is possible. The sender must be willing to accept that the demand might be backlogged.

Link copied to clipboard

Whether the filler may partially fill demands. Does not imply that a partial fill will occur — only that it is possible. A demand that forbids partial filling sent to a filler that allows partial filling is still valid; the filler is responsible for not splitting it.

Link copied to clipboard
abstract val requestFillAmount: Int

The number of units the filler would allocate now.

Link copied to clipboard

The status the demand would receive if processed now.

Link copied to clipboard
abstract val timeStamp: Double

Simulation time at which this message was created/valid.