NoDelayDemandCarrier

Stateless DemandCarrierIfc that immediately ships and delivers the demand — no simulated time passes. Also implements DemandStateChangeListener so it can be attached to a demand as a post-fill auto-shipping hook (matches Java's DemandListenerFilledIfc role on the original class).

Singleton — replaces Java's static NoDelayDemandCarrier.DefaultNoDelayDemandCarrier per porting plan §4.2.

See sc.transportlayer.NoDelayDemandCarrier

Functions

Link copied to clipboard
open override fun canShip(demand: SupplyChainModel.Demand): Boolean

Side-effect-free probe: returns true iff demand would route successfully under the carrier's current configuration. A false result indicates transportDemand would either throw or silently drop the demand. Useful as a self-guard inside carrier implementations and as a configuration test from external code.

Link copied to clipboard

When attached to a demand, fires transportDemand on FILLED.

Link copied to clipboard
open override fun transportDemand(demand: SupplyChainModel.Demand)

Transport demand from its origin to its destination.