jcsp.plugNplay.ints
Class SubstituteInt
java.lang.Object
|
+--jcsp.plugNplay.ints.SubstituteInt
- All Implemented Interfaces:
- CSProcess
- public final class SubstituteInt
- extends Object
- implements CSProcess
Substitutes a user-configured constant for each integer in the stream
flowing through.
Process Diagram
___________________
in | | out
-->--| SubstituteInt (n) |-->--
|___________________|
Description
SubstituteInt is a process that substitutes the (constant) n
with which it is configured for everything recieved on its in channel.
So, its output stream has constant values but its rate of flow is triggered by
its input.
Channel Protocols
Input Channels |
in |
int |
All channels in this package carry integers.
|
Output Channels |
out |
int |
All channels in this package carry integers.
|
- Author:
- P.D.Austin
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 |
SubstituteInt
public SubstituteInt(ChannelInputInt in,
ChannelOutputInt out,
int n)
- Construct a new SubstituteInt process.
- Parameters:
n
- the integer to be sent down the out Channel.in
- the input Channelout
- the output Channel
run
public void run()
- The main body of this process.
- Specified by:
run
in interface CSProcess
Submit a bug or feature to jcsp-team@ukc.ac.uk
Version 1.0-rc4 of the JCSP API Specification (Copyright 1997-2000 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.