Ship

data class Ship(val routingTable: RoutingTableIfc, val outboundCarrier: DemandCarrierIfc) : DockTerminalAction(source)

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.

Constructors

Link copied to clipboard
constructor(routingTable: RoutingTableIfc, outboundCarrier: DemandCarrierIfc)

Properties

Link copied to clipboard

carrier responsible for the next leg

Link copied to clipboard

resolves finalDestination → nextHop for every demand that may arrive at this dock