Network Spec
The canonical, serializable description of a multi-echelon supply-chain network — the single data form that the Kotlin DSL, the TOML/JSON loaders, and programmatic generators all produce, and that SupplyChainBuilder consumes to instantiate a running MultiEchelonNetwork.
Topology is a flat node list with parent references rather than nested structures: this handles arbitrary multi-tier depth, is reorder- and refactor-tolerant, and makes validation (cycle detection, one-root, reference resolution) straightforward.
The spec is pure data — no references to KSL runtime types. Validate it with validate before building.
Parameters
network name
how shipments move between nodes
every item type the network carries
every IHP / cross-dock, each pointing at its supplier via NodeSpec.parent
customer-demand arrival processes at nodes
cost formulations to attach (after topology)
See also
Constructors
Functions
Serialize this spec to a JSON string.
Serialize this spec to a TOML string.
Validate the structural and reference integrity of this NetworkSpec, returning every problem found (not just the first). An empty list means the spec is well-formed and safe to pass to SupplyChainBuilder.build.