eaLib API Docs
Last Modified : January 7 2002

mss.ea.al
Class RandomDelayElement

java.lang.Object
  |
  +--mss.ea.core.GeneticOperator
        |
        +--mss.ea.al.DelayElement
              |
              +--mss.ea.al.RandomDelayElement
All Implemented Interfaces:
SingleStreamProcessor, StreamProcessor

public class RandomDelayElement
extends DelayElement

Stream processors which delays the transmission of a stream for a random time. This operator may be used for debugging purposes.

Since:
0.2.2
Version:
$Revision: 1.2 $ $Date: 2001/11/26 09:25:00 $
Author:
Andreas Rummler

Fields inherited from class mss.ea.al.DelayElement
delay
 
Fields inherited from class mss.ea.core.GeneticOperator
description, ID, name
 
Constructor Summary
RandomDelayElement(long maxDelay)
          Constructor.
 
Method Summary
 IndividualStream process(IndividualStream is)
          This method delays the transmission of the stream for a random time.
 
Methods inherited from class mss.ea.al.DelayElement
getDelay, setDelay
 
Methods inherited from class mss.ea.core.GeneticOperator
getDescription, getID, getName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface mss.ea.core.StreamProcessor
getName
 

Constructor Detail

RandomDelayElement

public RandomDelayElement(long maxDelay)
Constructor.
Parameters:
maxDelay - maximal time for the delay in milliseconds
Method Detail

process

public IndividualStream process(IndividualStream is)
This method delays the transmission of the stream for a random time. The time is between 0 and the given maximal delay and is calculated randomly everytime this method is invoked.
Overrides:
process in class DelayElement
Parameters:
is - stream to be transmitted
Returns:
stream to be transmitted

eaLib API Docs
Last Modified : January 7 2002

Copyright © 2000-2001 Technical University of Ilmenau, Department ESS