DockTerminalAction

Terminal action a Dock performs once its service-time delay elapses for an arriving demand.

Inheritors

Constructors

Link copied to clipboard
protected constructor()

Types

Link copied to clipboard
data class Ship(val routingTable: RoutingTableIfc, val outboundCarrier: DemandCarrierIfc) : DockTerminalAction

Re-ship the demand to its next hop in a multi-hop pass-through (a cross-dock). The dock looks up the next hop in routingTable using the demand's SupplyChainModel.Demand.demandSender (the final destination), calls demand.ship() to transition Delivered → Shipped, and hands the demand to outboundCarrier.

Link copied to clipboard

Finalise the demand at this destination via demand.store().