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)Submit a bug or feature to jcsp-team@kent.ac.uk
Version 1.1-rc4 of the JCSP API Specification (Copyright 1997-2008 P.D.Austin and P.H.Welch - All Rights Reserved)
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.