|
CSP for Java (JCSP) 1.1-rc4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jcsp.plugNplay.Regular
public class Regular
This process generates a constant stream of Integers at a regular rate.
_____________ | | 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 Summary | |
---|---|
Regular(ChannelOutput out,
int n,
long interval)
Construct the process. |
Method Summary | |
---|---|
void |
run()
The main body of this process. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Regular(ChannelOutput out, int n, long interval)
out
- the output channeln
- the value to be generatedinterval
- the interval between outputs (in milliseconds)Method Detail |
---|
public void run()
run
in interface CSProcess
|
CSP for Java (JCSP) 1.1-rc4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |