SharedCarrier

data class SharedCarrier(val carrier: DemandCarrierIfc = NoDelayDemandCarrier) : TransportStrategy(source)

One DemandCarrierIfc shared by the external supplier and every IHP. The carrier is held inside MultiEchelonNetwork via a forwarding adapter so callers can hot-swap it mid-build.

transportTime is not honoured under this strategy — passing a non-null transportTime to any attachX method throws, matching the original MultiEchelonNetwork's behaviour.

Parameters

carrier

the initial carrier; defaults to NoDelayDemandCarrier

Constructors

Link copied to clipboard
constructor(carrier: DemandCarrierIfc = NoDelayDemandCarrier)

Properties

Link copied to clipboard