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
-
Squares(ChannelOutput)
- Construct a new Squares process with the output Channel out.
-
run()
- The main body of this process.
Squares
public Squares(ChannelOutput out)
- Construct a new Squares process with the output Channel out.
- Parameters:
- out - The output channel
run
public void run()
- The main body of this process.
All Packages Class Hierarchy This Package Previous Next Index