BoundedSubnetwork
class BoundedSubnetwork<ItemT, InputChannelT : ChannelType<InputChannelT>, OutputChannelT : ChannelType<OutputChannelT>>(label: String, val capacity: Int, input: Connection<out ItemT, InputChannelT>, inner: (NodeBuilder<ItemT, InputChannelT>) -> NodeBuilder<ItemT, OutputChannelT>, output: OutputRef<ItemT, OutputChannelT>) : CompoundNode, BoundedContainer<ItemT>
A limited capacity compound node compiling the subnetwork, defined by inner, and attaching appropriate access-control nodes.
For metric tracking purposes, entities should not be converted to instances of other types within the network
Parameters
ItemT
Type of entity to passing through the subnetwork.
InputChannelT
Type of channel, upper bound by ChannelType, the subnetwork takes in as input
OutputChannelT
Type of channel, upper bound by ChannelType, the subnetwork produces
capacity
Maximum capacity of the bounded subnetwork
input
Connection into the bounded subnetwork
inner
Internal contents of the subnetwork
output
Output reference for the subnetwork's output to be connected to
Constructors
Link copied to clipboard
constructor(label: String, capacity: Int, input: Connection<out ItemT, InputChannelT>, inner: (NodeBuilder<ItemT, InputChannelT>) -> NodeBuilder<ItemT, OutputChannelT>, output: OutputRef<ItemT, OutputChannelT>)