NodeSpec

@Serializable
data class NodeSpec(val name: String, val type: NodeType, val parent: String, val transportTimeFromParent: RVSpec? = null, val inventory: List<InventorySpec> = emptyList(), val enableShipmentFormation: Boolean = false, val shipmentFormationFromParent: ShipmentFormationSpec? = null)(source)

Serializable description of a network node and its edge to its supplier.

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)

Constructors

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard