public class Regulate extends Object implements CSProcess
in ____________________________ --->---| | out reset | Regulate (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 | java.lang.Object | This accepts data of any Class. |
reset | java.lang.Long | This resets the time interval between outputs (milliseconds). |
Output Channels | ||
out | java.lang.Object | This carries samples from the input data, sampled at the defined rate. |
FixedDelay
,
Regular
Constructor and Description |
---|
Regulate(AltingChannelInput in,
AltingChannelInput reset,
ChannelOutput out,
long initialInterval)
Construct the process.
|
public Regulate(AltingChannelInput in, AltingChannelInput reset, ChannelOutput 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–2014. All rights reserved.