|
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.Object org.jcsp.plugNplay.Regulate
public class Regulate
This process controls the rate of flow of traffic from its input to output channels.
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 Summary | |
---|---|
Regulate(AltingChannelInput in,
AltingChannelInput reset,
ChannelOutput 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 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)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 |