|
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.RegulateInt
public class RegulateInt
This process controls the rate of flow of traffic from its input to output channels.
in _______________________________
--->---| | out
reset | RegulateInt (initialInterval) |-->--
--->---|_______________________________|
The interval (in msecs) defining the output flow rate is given by a constructor argument. This can be changed at any time by sending a new interval (as a Long) down its reset channel.
| Input Channels | ||
|---|---|---|
| in | int | The input stream. |
| reset | java.lang.Long | This resets the time interval between outputs (milliseconds). |
| Output Channels | ||
| out | int | This carries samples from the input data, sampled at the defined rate. |
Regulate – which is the same apart from regulating Object,
rather than int, traffic).
FixedDelayInt,
RegularInt| Constructor Summary | |
|---|---|
RegulateInt(AltingChannelInputInt in,
AltingChannelInput reset,
ChannelOutputInt out,
long initialInterval)
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 RegulateInt(AltingChannelInputInt in,
AltingChannelInput reset,
ChannelOutputInt out,
long initialInterval)
in - the input channelout - the output channelinitialInterval - the initial interval between outputs (in milliseconds)reset - send a Long down this to change 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 | ||||||||