public class Regular extends java.lang.Object implements CSProcess
_____________
| | out
| Regular (n) |-->--
|_____________|
The interval (in msecs) defining the output flow rate is given by a constructor argument.
| Output Channels | ||
|---|---|---|
| out | java.lang.Integer | A constant value is sent down this channel at a regular rate. |
FixedDelay,
Regulate| Constructor and Description |
|---|
Regular(ChannelOutput out,
int n,
long interval)
Construct the process.
|
| Modifier and Type | Method and Description |
|---|---|
void |
run()
The main body of this process.
|
public Regular(ChannelOutput 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.