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)Copyright © 1996–2022. All rights reserved.