Class GenerateInt
java.lang.Object
org.jcsp.plugNplay.ints.GenerateInt
- All Implemented Interfaces:
CSProcess
Generates an infinite (constant) sequence of ints.
Process Diagram

Description
GenerateInt is a process that generates an infinite sequence of the integer, n, with which it is configured.Channel Protocols
| Output Channels | ||
|---|---|---|
| out | int | All channels in this package carry integers. |
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe output numberprivate final ChannelOutputIntThe output Channel -
Constructor Summary
ConstructorsConstructorDescriptionGenerateInt(ChannelOutputInt out, int n) Construct a new GenerateInt process with the output channel out. -
Method Summary
-
Field Details
-
out
The output Channel -
n
private final int nThe output number
-
-
Constructor Details
-
GenerateInt
Construct a new GenerateInt process with the output channel out.- Parameters:
out- the output channeln- the number to generate
-
-
Method Details
-
run
-