mss.ea.trm
Class AbstractStreamCondition
java.lang.Object
|
+--mss.ea.trm.AbstractStreamCondition
- All Implemented Interfaces:
- StreamCondition
- Direct Known Subclasses:
- ScoreStreamCondition
- public abstract class AbstractStreamCondition
- extends java.lang.Object
- implements StreamCondition
Abstract base class for a condition depending on an individual stream.
Subclasses must implement the method isTrue( IndividualStream ), to test whether the condition is fulfilled.
- Since:
- 0.1
- Version:
- 0.1 (08-15-2001)
- Author:
- Andreas Rummler
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
comp
protected IndividualComparator comp
- Individual comparator used for comparison of individuals.
AbstractStreamCondition
public AbstractStreamCondition()
isTrue
public abstract boolean isTrue(IndividualStream is)
- Test the condition.
Every subclass must implement this method. This method tests the condition and returns true
if the condition is fulfilled. The condition depends always on a stream which is passed as a
parameter to this condition.
- Specified by:
isTrue
in interface StreamCondition
- Parameters:
is
- individual stream on which basis this condition is evaluated- Returns:
- result of the test of the condition
getComparator
public IndividualComparator getComparator()
- Gets the individual comparator.
This method returns null, if no comparator is set.
- Returns:
- used individual comparator or null
setComparator
public void setComparator(IndividualComparator comp)
- Sets a new individual comparator.
- Parameters:
comp
- new individual comparator
Copyright © 2000-2001 Technical University of Ilmenau, Department ESS