All Packages Class Hierarchy This Package Previous Next Index
Class jcsp.util.buildingblocks.ints.PairsInt
java.lang.Object
|
+----jcsp.util.buildingblocks.ints.PairsInt
- public class PairsInt
- extends Object
- implements CSProcess
Process Diagram
External View
__________
in | | out
-->-| PairsInt |-->---
|__________|
Internal View
_________________________________________
| __________ _________ |
in | | | | | | out
-->---| DeltaInt |---->------| PlusInt |--------->---
| |__________| |_________| |
| | | |
| | ___________ | |
| | | | | |
| +-->--| TailInt |-->--+ |
| |___________| |
| PairsInt |
|_________________________________________|
Description
The PairsInt class is a process which adds together the value of an int
sent down the in ChannelInt and adds it together with the previous int
sent down the in ChannelInt and outputs it down the out ChannelInt. This
continues forever.
Channel Protocols
Input Channels |
in |
ChannelInt |
int
|
Output Channels |
out |
ChannelInt |
int
|
- Author:
- P.D.Austin
-
PairsInt(ChannelInputInt, ChannelOutputInt)
- Construct a new PairsInt process with the input ChannelInt in and the
output ChannelInt out.
-
run()
- The main body of this process.
PairsInt
public PairsInt(ChannelInputInt in,
ChannelOutputInt out)
- Construct a new PairsInt process with the input ChannelInt in and the
output ChannelInt out.
- Parameters:
- 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