public final class FixedDelayInt 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. |
RegulateInt
,
RegularInt
Modifier and Type | Field and Description |
---|---|
private long |
delayTime
The time the process is to wait in milliseconds between receiving a
message and then sending it.
|
private ChannelInputInt |
in
The input Channel
|
private ChannelOutputInt |
out
The output Channel
|
Constructor and Description |
---|
FixedDelayInt(long delayTime,
ChannelInputInt in,
ChannelOutputInt out)
Construct a new FixedDelayInt process with the input Channel in and the
output Channel out.
|
Modifier and Type | Method and Description |
---|---|
void |
run()
The main body of this process.
|
private final ChannelInputInt in
private final ChannelOutputInt out
private final long delayTime
public FixedDelayInt(long delayTime, ChannelInputInt in, ChannelOutputInt out)
delayTime
- the time the process is to wait in milliseconds
between receiving a message and then sending it (a negative
delayTime implies no waiting).in
- the input Channelout
- the output Channel