public class Pairs
Generates sums of successive pairs of input Integers.
Two inputs are needed before any output is produced but that, thereafter, one output is produced for each input.
Input Channels | ||
---|---|---|
in | java.lang.Number | The Channel can accept data from any subclass of Number. All values will be converted to ints. |
Output Channels | ||
out | java.lang.Integer | The output will always be of type Integer. |
Constructor and description |
---|
Pairs
(ChannelInput in, ChannelOutput out) Construct a new Pairs process with the input Channel in and the output Channel out. |
Construct a new Pairs process with the input Channel in and the output Channel out.
in
- The input Channelout
- The output ChannelJCSP for Java 1.8 generated 14-10-2016 by Jon Kerridge, Edinburgh Napier University - j dot kerridge at napier dot ac dot uk