Evolvica Core API Version 0.6.2
Last Modified: June 29 2004

org.evolvica.core.terminate
Class AbsoluteScoreCondition

java.lang.Object
  extended byorg.evolvica.core.terminate.ScoreComparingCondition
      extended byorg.evolvica.core.terminate.AbsoluteScoreCondition
All Implemented Interfaces:
ICondition

public class AbsoluteScoreCondition
extends ScoreComparingCondition

Absolute score condition. This condition is fulfilled if a score from an individual set is better than the target score.

Since:
0.4.0
Version:
$Revision: 1.5 $ $Date: 2004/05/26 11:58:18 $
Author:
Andreas Rummler

Field Summary
protected  IScore target
          Target score.
 
Fields inherited from class org.evolvica.core.terminate.ScoreComparingCondition
comparator
 
Constructor Summary
AbsoluteScoreCondition()
          Constructor.
AbsoluteScoreCondition(IScore target, IScoreComparator comparator)
          Constructor.
 
Method Summary
 IScore getTarget()
          Returns the target score.
 boolean isTrue(IIndividualSet iset)
          Checks if this condition is true for the given individual set.
 void setTarget(IScore score)
          Sets the target score.
 
Methods inherited from class org.evolvica.core.terminate.ScoreComparingCondition
getComparator, setComparator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

target

protected IScore target
Target score.

Constructor Detail

AbsoluteScoreCondition

public AbsoluteScoreCondition()
Constructor.


AbsoluteScoreCondition

public AbsoluteScoreCondition(IScore target,
                              IScoreComparator comparator)
Constructor.

Parameters:
target - target score
comparator - score comparator
Method Detail

isTrue

public boolean isTrue(IIndividualSet iset)
Description copied from interface: ICondition
Checks if this condition is true for the given individual set.

Parameters:
iset - individual set to check for the truth of the condition
Returns:
true if the condition is fulfilled, false otherwise
See Also:
ICondition.isTrue(org.evolvica.core.IIndividualSet)

getTarget

public IScore getTarget()
Returns the target score.

Returns:
target score

setTarget

public void setTarget(IScore score)
Sets the target score.

Parameters:
score - target score

Evolvica Core API Version 0.6.2
Last Modified: June 29 2004

Copyright © 2000-2004 Technical University of Ilmenau, Department Electronic Circuits and Systems