All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jcsp.util.buildingblocks.Nos

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

public class Nos
extends Object
implements CSProcess

Process Diagram

External View

         _______  
        |       | out
        |  Nos  |-->----
        |_______|
 

Internal View

         __________________________________________
        |  ____________             _______        |
        | |            |           |       |       | out
        | | Prefix  (0)|----->-----| Delta |---------->-- 
        | |____________|           |_______|       |
        |     |                        |           |
        |     |       ___________      |           |
        |     |      |           |     |           |
        |     +---<--| Successor |--<--+           |
        |            |___________|                 |
        |                                      Nos |
        |__________________________________________|
 

Description

The Nos class is a process which generates a sequence 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 Nos(ChannelOutput)
Construct a new Nos process with the output Channel out.

Method Index

 o run()
The main body of this process.

Constructors

 o Nos
 public Nos(ChannelOutput out)
Construct a new Nos 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