StationNetworkBuilder

class StationNetworkBuilder(spec: QueueingNetworkSpec, predicates: Map<String, QObjectPredicate> = emptyMap(), childFactories: Map<String, ChildFactoryIfc> = emptyMap(), childCounts: Map<String, ChildCountIfc> = emptyMap(), markings: Map<String, MarkingHookIfc> = emptyMap())(source)

Builds a live StationNetwork from a QueueingNetworkSpec. The builder is the resolution half of the two-layer design: the spec is pure data, and this turns it into model elements parented to a supplied ModelElement, wiring routing by node name in a second pass so forward references resolve.

Parameters

spec

the network description to build

predicates

a hook registry mapping each name used by a RoutingSpec.ByCondition case to a QObjectPredicate. Unknown names fail the build loudly.

Constructors

Link copied to clipboard
constructor(spec: QueueingNetworkSpec, predicates: Map<String, QObjectPredicate> = emptyMap(), childFactories: Map<String, ChildFactoryIfc> = emptyMap(), childCounts: Map<String, ChildCountIfc> = emptyMap(), markings: Map<String, MarkingHookIfc> = emptyMap())

Functions

Link copied to clipboard

Builds the network under parent, returning the live StationNetwork.