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)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.