All Packages Class Hierarchy This Package Previous Next Index
Class jcsp.util.buildingblocks.ints.IntegratorInt
java.lang.Object
|
+----jcsp.util.buildingblocks.ints.IntegratorInt
- public class IntegratorInt
- extends Object
- implements CSProcess
Process Diagram
External View
_______________
in | | out
-->-| IntegratorInt |-->---
|_______________|
Internal View
__________________________________________
| _________ __________ |
in | | | | | | out
-->---| PlusInt |----->------| DeltaInt |--------->---
| |_________| |__________| |
| | | |
| | _______________ | |
| | | | | |
| +--<-| PrefixInt (0) |-<-+ |
| |_______________| |
| IntegratorInt |
|__________________________________________|
Description
The IntegratorInt class is a process which calculates a running total of
the ints 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
-
IntegratorInt(ChannelInputInt, ChannelOutputInt)
- Construct a new IntegratorInt process with the input ChannelInt in and the
output ChannelInt out.
-
run()
- The main body of this process.
IntegratorInt
public IntegratorInt(ChannelInputInt in,
ChannelOutputInt out)
- Construct a new IntegratorInt 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