|
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.Objectorg.jcsp.plugNplay.ints.RegularInt
public class RegularInt
This process generates a constant stream of Integers at a regular rate.
________________
| | 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 Summary | |
|---|---|
RegularInt(ChannelOutputInt 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 RegularInt(ChannelOutputInt 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 | ||||||||