thenJoin

Attaches a join node to the builder chain to join together a list of builder chains (with push output connections). The subsequent connection out of the join node will be a push connection.

When used in combination of other nodes, could construct (for example):

  • following Fork -> parallel lanes for traffic to flow through / different paths for different types of port vehicles

  • from a list of generators -> mixed arrivals of vehicle of different types


fun <T> List<NodeBuilder<T, ChannelType.Pull>>.thenJoin(label: String, policy: JoinPolicy<T> = joinPolicy(RandomPolicy())): RegularNodeBuilder<PullJoinNode<T>, T, ChannelType.Pull>

Attaches a join node to the builder chain to join together a list of builder chains (with pull output connections). The subsequent connection out of the join node will be a pull connection.

When used in combination of other nodes, could construct (for example):

  • following Fork -> parallel lanes for traffic to flow through / different paths for different types of port vehicles

  • from a list of generators -> mixed arrivals of vehicle of different types

Parameters

policy

How the pull join node will decide which lane to accept vehicles from when the downstream node is pulls