Class Fibonacci
java.lang.Object
org.jcsp.plugNplay.Fibonacci
- All Implemented Interfaces:
CSProcess
This generates the Fibonacci sequence on its output channel.
CSProcess Diagram
External View
___________
| | out
| Fibonacci |------>
|___________|
Internal View
________________________________
| |
| ____________ ________ |
| | | | | | out
| | Prefix (0) |-->--| Delta2 |------>--
| |____________| |________| |
| | | |
| ^ V |
| ______|_____ ___|___ |
| | | | | |
| | Prefix (1) |--invalid input: '<'--| Pairs | |
| |____________| |_______| |
| |
| Fibonacci |
|________________________________|
Description
FibonacciInt generates the sequence of Fibonacci Numbers on its output channel.Channel Protocols
| Output Channels | ||
|---|---|---|
| out | java.lang.Integer | The output will always be of type Integer. |
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFibonacci(ChannelOutput out) Construct a new Fibonacci process with the output Channel out. -
Method Summary
-
Field Details
-
out
The output Channel
-
-
Constructor Details
-
Fibonacci
Construct a new Fibonacci process with the output Channel out.- Parameters:
out- the output channel
-
-
Method Details
-
run
-