All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jcsp.util.buildingblocks.ints.SquaresInt

java.lang.Object
   |
   +----jcsp.util.buildingblocks.ints.SquaresInt

public class SquaresInt
extends Object
implements CSProcess

Process Diagram

External View

         ____________
        |            | out
        | SquaresInt |-->----
        |____________|
 

Internal View

         ___________________________________________________
        |  ________       _______________       __________  |
        | |        |     |               |     |          | | out
        | | NosInt |-->--| IntegratorInt |-->--| PairsInt |---->-- 
        | |________|     |_______________|     |__________| |
        |                                        SquaresInt |
        |___________________________________________________|
 

Description

The SquaresInt class is a process which generates a sequence of squares of Natural numbers that are output down the out ChannelInt.

ChannelInt Protocols

Input ChannelInts
Output ChannelInts
out ChannelInt int

Author:
P.D.Austin

Constructor Index

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

Method Index

 o run()
The main body of this process.

Constructors

 o SquaresInt
 public SquaresInt(ChannelOutputInt out)
Construct a new SqauresInt 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