Node Spec
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
type
parent
the supplier: another node's name, or the sentinel EXTERNAL_SUPPLIER
transport Time From Parent
transport time on the supplier → this edge; null means immediate transport
inventory
the inventories this node holds (must be empty for a NodeType.CD)
enable Shipment Formation
install a load-forming carrier on this node's outbound (requires TransportStrategySpec.PerIHPTimeBased)
shipment Formation From Parent
per-edge formation policy toward this node's supplier (requires the supplier to be formation-enabled)