All Packages Class Hierarchy This Package Previous Next Index
Class jcsp.util.buildingblocks.ints.PrefixInt
java.lang.Object
|
+----jcsp.util.buildingblocks.ints.PrefixInt
- public final class PrefixInt
- extends Object
- implements CSProcess
Process Diagram
_______________
in | | out
-->--| PrefixInt (n) |-->--
|_______________|
Description
The PrefixInt class is a process which outputs an initial int and then
has an infinite loop that waits an int to be sent down the
in ChannelInt. The process then writes the int down the out ChannelInt.
Channel Protocols
Input Channels |
in |
ChannelInt |
int
|
Output Channels |
out |
ChannelInt |
int
|
- Author:
- P.D.Austin
-
PrefixInt(int, ChannelInputInt, ChannelOutputInt)
- Construct a new Prefix process with the input ChannelInt in and the
output ChannelInt out.
-
run()
- The main body of this process.
PrefixInt
public PrefixInt(int value,
ChannelInputInt in,
ChannelOutputInt out)
- Construct a new Prefix process with the input ChannelInt in and the
output ChannelInt out.
- Parameters:
- value - The initial int to be sent down the ChannelInt.
- in - The input ChannelInt
- out - The output ChannelInt
run
public void run()
- The main body of this process.
All Packages Class Hierarchy This Package Previous Next Index