DemandFillerFinder

Default DemandFillerFinderIfc implementation backed by a customer-to-supplier map. Each DemandSenderIfc (customer) maps to at most one DemandFillerIfc (supplier); a supplier may serve many customers.

See sc.inventorylayer.DemandFillerFinder

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Read-only view of all registered customers, in insertion order.

Link copied to clipboard

True iff no mappings have been registered.

Link copied to clipboard
val size: Int

Number of registered customer→supplier mappings.

Functions

Link copied to clipboard

True iff customer has been registered.

Link copied to clipboard

True iff filler appears as a supplier for at least one customer.

Link copied to clipboard

Look up the filler for the sender of demand. Returns null if the demand's sender has no registered supplier. (Java threw NoDemandFillerFoundException here; we honor the nullable contract of DemandFillerFinderIfc and let the caller decide.)

Link copied to clipboard

Register or replace the supplier for customer. Returns the prior supplier, if any.