All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jcsp.util.buildingblocks.ints.FixedDelayInt

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

public final class FixedDelayInt
extends Object
implements CSProcess

Process Diagram

         _______________
    in  |               | out
   -->--| FixedDelayInt |-->--
        |_______________|
 

Description

The FixedDelay class is a process which has an infinite loop that waits an int to be sent down the in ChannelInt. The process then sleeps for a time equal to the delayTime in milliseconds and then writes the int down the out ChannelInt.

Channel Protocols

Input Channels
in ChannelInt int
Output Channels
out ChannelInt int

Author:
P.D.Austin

Constructor Index

 o FixedDelayInt(long, ChannelInputInt, ChannelOutputInt)
Construct a new FixedDelayInt process with the input ChannelInt in and the output ChannelInt out.

Method Index

 o run()
The main body of this process.

Constructors

 o FixedDelayInt
 public FixedDelayInt(long delayTime,
                      ChannelInputInt in,
                      ChannelOutputInt out)
Construct a new FixedDelayInt process with the input ChannelInt in and the output ChannelInt out.

Parameters:
delayTime - The time the process is to wait in milliseconds between receiving a message and then sending it.
in - The input ChannelInt
out - The output ChannelInt

Methods

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


All Packages  Class Hierarchy  This Package  Previous  Next  Index