public class RegularInt extends java.lang.Object implements CSProcess
________________
| | out
| RegularInt (n) |-->--
|________________|
The interval (in msecs) defining the output flow rate is given by a constructor argument.
| Output Channels | ||
|---|---|---|
| out | int | A constant value is sent down this channel at a regular rate. |
FixedDelayInt,
RegulateInt| Constructor and Description |
|---|
RegularInt(ChannelOutputInt out,
int n,
long interval)
Construct the process.
|
| Modifier and Type | Method and Description |
|---|---|
void |
run()
The main body of this process.
|
public RegularInt(ChannelOutputInt out, int n, long interval)
out - the output channeln - the value to be generatedinterval - the interval between outputs (in milliseconds)Copyright © 1996–2022. All rights reserved.