RouteSpec

@Serializable
data class RouteSpec(val name: String, val steps: List<String>)(source)

A first-class named ksl.modeling.station.Route — an ordered list of receivers a QObject traverses via its attached sender. Each step is a node name (with the "node#index" syntax supported for the multi-input stations NWay/Match/Join).

The builder constructs and registers each route after all nodes exist. A marking hook can look up routes by name via network.route(name) (the second parameter to ksl.modeling.station.MarkingHookIfc.mark) and attach the route's sender to the instance for per-instance routing.

Constructors

Link copied to clipboard
constructor(name: String, steps: List<String>)

Properties

Link copied to clipboard

the route's name; must be unique within the network

Link copied to clipboard

an ordered list of node names; each may be "name" or "name#index" for a specific input of a multi-input station