Order Message
class OrderMessage(val orderFiller: OrderFillerIfc, val timeStamp: Double) : OrderMessageIfc(source)
Default implementation of OrderMessageIfc. Built up by an OrderFillerIfc one demand at a time via add.
Parameters
order Filler
the filler producing this message
time Stamp
simulation time at which the message was created
See sc.inventorylayer.OrderMessage
Properties
Link copied to clipboard
Returns false for an empty message (i.e., before add has been called) — matches the Java behavior.
Link copied to clipboard
Read-only view of the per-demand messages. Entries may be null.
Link copied to clipboard
Functions
Link copied to clipboard
Appends a per-demand message. A null entry — or a message whose DemandMessageIfc.canFillItemType is false — permanently flips canFillItemTypes to false. The legacy Java code de-referenced the message before the null check (NPE bug); this port fixes the order.
Link copied to clipboard
Returns the demand message at index, or null if a null was added there.