public final class MultInt
Scales an integer stream.
Input Channels | ||
---|---|---|
in | int | All channels in this package carry integers. |
Output Channels | ||
out | int | All channels in this package carry integers. |
import org.jcsp.lang.*; import org.jcsp.util.ints.*; public final class MultIntExample { public static void main (String[] argv) { final One2OneChannel a = ChannelInt.createOne2One (); final One2OneChannel b = ChannelInt.createOne2One (); new Parallel ( new CSProcess[] { new NumbersInt (a.out ()), new MultInt (42, a.in (), b.out ()), new PrinterInt (b.in ()) } ).run (); } }
Constructor and description |
---|
MultInt
(int n, ChannelInputInt in, ChannelOutputInt out) Construct a new MultInt process with the input Channel in and the output Channel out. |
Construct a new MultInt process with the input Channel in and the output Channel out.
n
- the multiplierin
- 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