public final class SubstituteInt extends java.lang.Object implements CSProcess
Input Channels | ||
---|---|---|
in | int | All channels in this package carry integers. |
Output Channels | ||
out | int | All channels in this package carry integers. |
Modifier and Type | Field and Description |
---|---|
private ChannelInputInt |
in
The input Channel
|
private int |
n
The int to be sent down the out Channel.
|
private ChannelOutputInt |
out
The output Channel
|
Constructor and Description |
---|
SubstituteInt(ChannelInputInt in,
ChannelOutputInt out,
int n)
Construct a new SubstituteInt process.
|
Modifier and Type | Method and Description |
---|---|
void |
run()
The main body of this process.
|
private final int n
private final ChannelInputInt in
private final ChannelOutputInt out
public SubstituteInt(ChannelInputInt in, ChannelOutputInt out, int n)
n
- the integer to be sent down the out Channel.in
- the input Channelout
- the output Channel