Package org.jcsp.plugNplay
Class Substitute
java.lang.Object
org.jcsp.plugNplay.Substitute
- All Implemented Interfaces:
CSProcess
Substitutes a user-configured Object for each Object in the stream
flowing through.
Process Diagram
Description
Substitute is a process that substitutes the (Object) o with which it is configured for everything recieved on its in channel. So, its output stream repeats the same Object but its rate of flow is triggered by its input.
Channel Protocols
Input Channels | ||
---|---|---|
in | java.lang.Object | The in Channel can accept data of any Class. |
Output Channels | ||
out | java.lang.Object | The object to be sent down the Channel. |
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ChannelInput
The input Channelprivate Object
The Object to be sent down the out Channel.private ChannelOutput
The output Channel -
Constructor Summary
ConstructorsConstructorDescriptionSubstitute
(ChannelInput in, ChannelOutput out, Object o) Construct a new Substitute process. -
Method Summary
-
Field Details
-
o
The Object to be sent down the out Channel. -
in
The input Channel -
out
The output Channel
-
-
Constructor Details
-
Substitute
Construct a new Substitute process.- Parameters:
o
- the Object to be sent down the out Channel.in
- the input Channelout
- the output Channel
-
-
Method Details