Package org.jcsp.plugNplay
Class FixedDelay
java.lang.Object
org.jcsp.plugNplay.FixedDelay
- All Implemented Interfaces:
CSProcess
This process copies input to output, imposing a fixed time delay
between these events.
Process Diagram
Description
This process copies input to output, imposing a fixed time delay between these events. Note that this does not imply that the rate of output will be regular, since that depends on the rate of input and the rate at which output taken. To impose a regular rate of output, seeRegulate
.
Channel Protocols
Input Channels | ||
---|---|---|
in | java.lang.Object | The in Channel can accept data of any Class. |
Output Channels | ||
out | java.lang.Object | The out Channel sends the the same type of data (in fact, the same data) as is input. |
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate long
The time the process is to wait in milliseconds between receiving a message and then sending it.private ChannelInput
The input Channelprivate ChannelOutput
The output Channel -
Constructor Summary
ConstructorsConstructorDescriptionFixedDelay
(long delayTime, ChannelInput in, ChannelOutput out) This process copies input to output, imposing a fixed time delay between these events. -
Method Summary
-
Field Details
-
in
The input Channel -
out
The output Channel -
delayTime
private long delayTimeThe time the process is to wait in milliseconds between receiving a message and then sending it.
-
-
Constructor Details
-
FixedDelay
This process copies input to output, imposing a fixed time delay between these events.- Parameters:
delayTime
- the time the process is to wait in milliseconds between receiving a message and then sending it – a zero or negative value implies no waiting.in
- the input Channelout
- the output Channel
-
-
Method Details