public final class DynamicDelta
This process broadcasts objects arriving on its input channel in parallel to its output channel array -- those output channels can be changed dynamically.
In each cycle, DynamicDelta waits for either its in or configure channel to become ready, giving priority to configure.
Anything arriving from in is broadcast in parallel down each element of its array of out channels.
The configure channel delivers ChannelOutput channels -- anything else is discarded. If the delivered ChannelOutput channel is not one of the channels already in the output array, it is added -- otherwise it is removed.
Input Channels | ||
---|---|---|
in | java.lang.Object | The in Channel can accept data of any Class. |
in | org.jcsp.lang.ChannelOutput | The configure Channel accepts Objects of type ChannelOutput only. |
Output Channels | ||
out[] | java.lang.Object | The output Channels will carry a broadcast of whatever is sent down the in Channel. |
Constructor and description |
---|
DynamicDelta
(AltingChannelInput in, AltingChannelInput config) Construct a new DynamicDelta process with the input channel in and the configuration channel configure. |
DynamicDelta
(AltingChannelInput in, AltingChannelInput config, ChannelOutput[] out) Construct a new DynamicDelta process with the input channel in, the configuration channel configure and the initial output channels out. |
Construct a new DynamicDelta process with the input channel in and the configuration channel configure.
in
- the input Channelconfigure
- the configuration ChannelConstruct a new DynamicDelta process with the input channel in, the configuration channel configure and the initial output channels out. The ordering of the channels in the out array make no difference to the functionality of this process.
in
- the input channelconfigure
- the configuration channelout
- the output channelsJCSP for Java 1.8 generated 14-10-2016 by Jon Kerridge, Edinburgh Napier University - j dot kerridge at napier dot ac dot uk