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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
doubleThreshold
protected double doubleThreshold
- Threshold (double).
floatThreshold
protected float floatThreshold
- Threshold (float).
intThreshold
protected int intThreshold
- Threshold (int).
longThreshold
protected long longThreshold
- Threshold (long).
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)
isTrue
public boolean isTrue(IndividualStream is)
- Test of break condition.
- Overrides:
isTrue
in class AbstractStreamCondition
- Returns:
- result of test of break condition.
Copyright © 2000-2001 Technical University of Ilmenau, Department ESS