All Packages Class Hierarchy This Package Previous Next Index
Class jcsp.util.buildingblocks.Fibonacci
java.lang.Object
|
+----jcsp.util.buildingblocks.Fibonacci
- public class Fibonacci
- extends Object
- implements CSProcess
CSProcess Diagram
External View
___________
| | out
| Fibonacci |------>
|___________|
Internal View
________________________________
| ____________ _______ |
| | | | | | out
| | Prefix (0) |-->--| Delta |------>--
| |____________| |_______| |
| | | |
| ^ V |
| ______|_____ ___|___ |
| | | | | |
| | Prefix (1) |--<--| Pairs | |
| |____________| |_______| |
| Fibonacci |
|________________________________|
Description
The Fibonacci class is a process which generates a sequence of Fibonacci
numbers that are output down the out Channel.
Channel Protocols
| Input Channels |
| Output Channels |
| out |
java.lang.Integer |
The output will always be of type Integer.
|
- Author:
- P.D.Austin
-
Fibonacci(ChannelOutput)
- Construct a new Fibonacci process with the output Channel out.
-
run()
- The main body of this process.
Fibonacci
public Fibonacci(ChannelOutput out)
- Construct a new Fibonacci process with the output Channel 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