All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jcsp.util.buildingblocks.Squares

java.lang.Object
   |
   +----jcsp.util.buildingblocks.Squares

public class Squares
extends Object
implements CSProcess

Process Diagram

External View

         _________  
        |         | out
        | Squares |-->----
        |_________|
 

Internal View

         __________________________________________
        |  _____       ____________       _______  |
        | |     |     |            |     |       | | out
        | | Nos |-->--| Integrator |-->--| Pairs |---->-- 
        | |_____|     |____________|     |_______| |
        |                                  Squares |
        |__________________________________________|
 

Description

The Squares class is a process which generates a sequence of squares of Natural 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

Constructor Index

 o Squares(ChannelOutput)
Construct a new Squares process with the output Channel out.

Method Index

 o run()
The main body of this process.

Constructors

 o Squares
 public Squares(ChannelOutput out)
Construct a new Squares process with the output Channel 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