All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jcsp.util.buildingblocks.ints.DeltaInt

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

public final class DeltaInt
extends Object
implements CSProcess

Process Diagram

         __________  out1 
     in |          |--->---
    -->-| DeltaInt | out2
        |__________|--->---
 

Description

The DeltaInt class is a process which has an infinite loop that waits for an int to be sent down the in ChannelInt. The process then writes the value in parallel down the out1 and out2 ChannelInts.

Channel Protocols

Input Channels
in ChannelInt int
Output Channels
out1,out2 ChannelInt int

Author:
P.D.Austin

Constructor Index

 o DeltaInt(ChannelInputInt, ChannelOutputInt, ChannelOutputInt)
Construct a new DeltaInt process with the input ChannelInt in and the output ChannelInts out1 and out2.

Method Index

 o run()
The main body of this process.

Constructors

 o DeltaInt
 public DeltaInt(ChannelInputInt in,
                 ChannelOutputInt out1,
                 ChannelOutputInt out2)
Construct a new DeltaInt process with the input ChannelInt in and the output ChannelInts out1 and out2. The ordering of the ChannelInts out1 and out2 make no difference to the functionality of this process.

Parameters:
in - The input channel
out1 - The first output ChannelInt
out2 - The second output ChannelInt

Methods

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


All Packages  Class Hierarchy  This Package  Previous  Next  Index