All Packages Class Hierarchy This Package Previous Next Index
Class jcsp.util.buildingblocks.ints.FibonacciInt
java.lang.Object
|
+----jcsp.util.buildingblocks.ints.FibonacciInt
- public class FibonacciInt
- extends Object
- implements CSProcess
Process Diagram
External View
______________
| | out
| FibonacciInt |------>
|______________|
Internal View
______________________________________
| _______________ __________ |
| | | | | | out
| | PrefixInt (0) |-->--| DeltaInt |------>--
| |_______________| |__________| |
| | | |
| ^ V |
| ________|______ ____|_____ |
| | | | | |
| | PrefixInt (1) |--<--| PairsInt | |
| |_______________| |__________| |
| FibonacciInt |
|______________________________________|
Description
The FibonacciInt class is a process which generates a sequence of Fibonacci
numbers that are output down the out ChannelInt.
ChannelInt Protocols
| Input ChannelInts |
| Output ChannelInts |
| out |
ChannelInt |
int
|
- Author:
- P.D.Austin
-
FibonacciInt(ChannelOutputInt)
- Construct a new FibonacciInt process with the output ChannelInt out.
-
run()
- The main body of this process.
FibonacciInt
public FibonacciInt(ChannelOutputInt out)
- Construct a new FibonacciInt process with the output ChannelInt out.
- Parameters:
- out - The output channel
run
public void run()
- The main body of this process.
All Packages Class Hierarchy This Package Previous Next Index