eaLib API Docs
Last Modified : January 7 2002

mss.ea.trm
Class BestWorstStreamCondition

java.lang.Object
  |
  +--mss.ea.trm.AbstractStreamCondition
        |
        +--mss.ea.trm.ScoreStreamCondition
              |
              +--mss.ea.trm.BestWorstStreamCondition
All Implemented Interfaces:
StreamCondition

public class BestWorstStreamCondition
extends ScoreStreamCondition

Termination dependent on the difference between best and worst score. The condition is fulfilled, if best score - worst score falls below a particular threshold. Note: this operator assumes that the stream is sorted (best first).

Since:
0.1
Version:
0.1 (08-21-2001)
Author:
Andreas Rummler

Field Summary
protected  double doubleThreshold
          Threshold (double).
protected  float floatThreshold
          Threshold (float).
protected  int intThreshold
          Threshold (int).
protected  long longThreshold
          Threshold (long).
 
Fields inherited from class mss.ea.trm.ScoreStreamCondition
DOUBLE, FLOAT, INT, LONG, mode, NONE
 
Fields inherited from class mss.ea.trm.AbstractStreamCondition
comp
 
Constructor Summary
BestWorstStreamCondition(double threshold)
          Constructor (mode double).
BestWorstStreamCondition(float threshold)
          Constructor (mode float).
BestWorstStreamCondition(int threshold)
          Constructor (mode int).
BestWorstStreamCondition(long threshold)
          Constructor (mode long).
 
Method Summary
 boolean isTrue(IndividualStream is)
          Test of break condition.
 
Methods inherited from class mss.ea.trm.AbstractStreamCondition
getComparator, setComparator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

doubleThreshold

protected double doubleThreshold
Threshold (double).

floatThreshold

protected float floatThreshold
Threshold (float).

intThreshold

protected int intThreshold
Threshold (int).

longThreshold

protected long longThreshold
Threshold (long).
Constructor Detail

BestWorstStreamCondition

public BestWorstStreamCondition(double threshold)
Constructor (mode double).
Parameters:
threshold - threshold (double)

BestWorstStreamCondition

public BestWorstStreamCondition(float threshold)
Constructor (mode float).
Parameters:
threshold - threshold (float)

BestWorstStreamCondition

public BestWorstStreamCondition(int threshold)
Constructor (mode int).
Parameters:
threshold - threshold (int)

BestWorstStreamCondition

public BestWorstStreamCondition(long threshold)
Constructor (mode long).
Parameters:
threshold - threshold (long)
Method Detail

isTrue

public boolean isTrue(IndividualStream is)
Test of break condition.
Overrides:
isTrue in class AbstractStreamCondition
Returns:
result of test of break condition.

eaLib API Docs
Last Modified : January 7 2002

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