NodeSpec

constructor(name: String, type: NodeType, parent: String, transportTimeFromParent: RVSpec? = null, inventory: List<InventorySpec> = emptyList(), enableShipmentFormation: Boolean = false, shipmentFormationFromParent: ShipmentFormationSpec? = null)(source)

Parameters

name

unique node name

parent

the supplier: another node's name, or the sentinel EXTERNAL_SUPPLIER

transportTimeFromParent

transport time on the supplier → this edge; null means immediate transport

inventory

the inventories this node holds (must be empty for a NodeType.CD)

enableShipmentFormation

install a load-forming carrier on this node's outbound (requires TransportStrategySpec.PerIHPTimeBased)

shipmentFormationFromParent

per-edge formation policy toward this node's supplier (requires the supplier to be formation-enabled)