build

Build spec under model. Validates first via NetworkSpec.validate and throws IllegalArgumentException with every problem listed if the spec is malformed.

Return

a BuildResult holding the network and its name maps

Parameters

model

the enclosing KSL Model

spec

the network description

Throws

if spec fails validation