eaLib API Docs
Last Modified : January 7 2002

mss.ea.al
Class DelayElement

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

public class DelayElement
extends GeneticOperator
implements SingleStreamProcessor

Simple stream processor which solely delays the transmission of the stream. This operator may be used for debugging purposes.

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

Field Summary
protected  long delay
          Amount of milliseconds to wait before transmitting the incoming stream.
 
Fields inherited from class mss.ea.core.GeneticOperator
description, ID, name
 
Constructor Summary
DelayElement(long delay)
          Constructor.
 
Method Summary
 long getDelay()
          Gets the delay.
 IndividualStream process(IndividualStream is)
          This methods waits for the given time and then transmits the stream to the successor.
 void setDelay(long delay)
          Sets a new delay.
 
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
 

Field Detail

delay

protected long delay
Amount of milliseconds to wait before transmitting the incoming stream.
Constructor Detail

DelayElement

public DelayElement(long delay)
Constructor.
Parameters:
delay - delay in milliseconds
Method Detail

setDelay

public void setDelay(long delay)
Sets a new delay.
Parameters:
delay - delay in milliseconds

getDelay

public long getDelay()
Gets the delay.
Returns:
delay

process

public IndividualStream process(IndividualStream is)
This methods waits for the given time and then transmits the stream to the successor.
Specified by:
process in interface SingleStreamProcessor
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