eaLib API Docs
Last Modified : January 7 2002

mss.ea.trm
Class AbsoluteScoreStreamCondition

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

public class AbsoluteScoreStreamCondition
extends ScoreStreamCondition

Termination at an absolute score value. The break condition is fulfilled in case that the score of the best individual > lowerBound and < upperBound. Note: this operator assumes that the stream is sorted (best first).

Since:
0.1
Version:
$Revision: 1.5 $ $Date: 2001/11/07 21:21:31 $
Author:
Andreas Rummler

Field Summary
protected  double doubleLowerBound
          Lower bound (double).
protected  double doubleUpperBound
          Upper bound (double).
protected  float floatLowerBound
          Lower bound (float).
protected  float floatUpperBound
          Upper bound (float).
protected  int intLowerBound
          Lower bound (int).
protected  int intUpperBound
          Upper bound (int).
protected  long longLowerBound
          Lower bound (long).
protected  long longUpperBound
          Upper bound (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
AbsoluteScoreStreamCondition(double lowerBound, double upperBound)
          Constructor (mode double).
AbsoluteScoreStreamCondition(float lowerBound, float upperBound)
          Constructor (mode float).
AbsoluteScoreStreamCondition(int lowerBound, int upperBound)
          Constructor (mode int).
AbsoluteScoreStreamCondition(long lowerBound, long upperBound)
          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

doubleLowerBound

protected double doubleLowerBound
Lower bound (double).

doubleUpperBound

protected double doubleUpperBound
Upper bound (double).

floatLowerBound

protected float floatLowerBound
Lower bound (float).

floatUpperBound

protected float floatUpperBound
Upper bound (float).

intLowerBound

protected int intLowerBound
Lower bound (int).

intUpperBound

protected int intUpperBound
Upper bound (int).

longLowerBound

protected long longLowerBound
Lower bound (long).

longUpperBound

protected long longUpperBound
Upper bound (long).
Constructor Detail

AbsoluteScoreStreamCondition

public AbsoluteScoreStreamCondition(double lowerBound,
                                    double upperBound)
Constructor (mode double).
Parameters:
lowerBound - lower termination bound
upperBound - upper termination bound

AbsoluteScoreStreamCondition

public AbsoluteScoreStreamCondition(float lowerBound,
                                    float upperBound)
Constructor (mode float).
Parameters:
lowerBound - lower bound
upperBound - upper termination bound

AbsoluteScoreStreamCondition

public AbsoluteScoreStreamCondition(int lowerBound,
                                    int upperBound)
Constructor (mode int).
Parameters:
lowerBound - lower termination bound
upperBound - upper termination bound

AbsoluteScoreStreamCondition

public AbsoluteScoreStreamCondition(long lowerBound,
                                    long upperBound)
Constructor (mode long).
Parameters:
lowerBound - lower termination bound
upperBound - upper termination bound
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