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

Constructor Index

 o FibonacciInt(ChannelOutputInt)
Construct a new FibonacciInt process with the output ChannelInt out.

Method Index

 o run()
The main body of this process.

Constructors

 o FibonacciInt
 public FibonacciInt(ChannelOutputInt out)
Construct a new FibonacciInt process with the output ChannelInt out.

Parameters:
out - The output channel

Methods

 o run
 public void run()
The main body of this process.


All Packages  Class Hierarchy  This Package  Previous  Next  Index