public class RegulateInt extends java.lang.Object implements CSProcess
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 and Description |
|---|
RegulateInt(AltingChannelInputInt in,
AltingChannelInput reset,
ChannelOutputInt out,
long initialInterval)
Construct the process.
|
| Modifier and Type | Method and Description |
|---|---|
void |
run()
The main body of this process.
|
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)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.