net.sf.adatagenerator.pred
Class AbstractPredicate<E extends Enum<E>,R>

java.lang.Object
  extended by net.sf.adatagenerator.pred.AbstractPredicate<E,R>
All Implemented Interfaces:
ExportablePredicate<E,R>, Predicate<R>
Direct Known Subclasses:
ExactMatchPredicate, ReflectionPredicate

Deprecated. Moved to the com.choicemaker.correlation package

public abstract class AbstractPredicate<E extends Enum<E>,R>
extends Object
implements Predicate<R>, ExportablePredicate<E,R>


Nested Class Summary
 
Nested classes/interfaces inherited from interface net.sf.adatagenerator.pred.ExportablePredicate
ExportablePredicate.CLUEMAKER_RECORD_VARIABLES
 
Field Summary
protected static Logger logger
          Deprecated.  
 
Fields inherited from interface net.sf.adatagenerator.pred.ExportablePredicate
m, q, r
 
Constructor Summary
AbstractPredicate(String predicateName)
          Deprecated.  
 
Method Summary
 boolean evaluate(com.choicemaker.shared.api.CMPair<? extends R> pair)
          Deprecated. Evaluates whether a pair of records satisfies this predicate.
abstract  boolean evaluateRecords(R q, R m)
          Deprecated.  
 String getName()
          Deprecated.  
abstract  boolean isRecordValidForEvaluation(R r)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.adatagenerator.pred.ExportablePredicate
exportEvaluationLogicAsString, exportValidityLogicAsString, getSupportedExportTypes
 

Field Detail

logger

protected static Logger logger
Deprecated. 
Constructor Detail

AbstractPredicate

public AbstractPredicate(String predicateName)
Deprecated. 
Method Detail

getName

public String getName()
Deprecated. 
Specified by:
getName in interface Predicate<R>

evaluate

public boolean evaluate(com.choicemaker.shared.api.CMPair<? extends R> pair)
                 throws EvaluationException
Deprecated. 
Description copied from interface: Predicate
Evaluates whether a pair of records satisfies this predicate.

Specified by:
evaluate in interface Predicate<R>
Parameters:
pair - a non-null pair of records
Returns:
true if the pairs satisfies this predicate; false otherwise
Throws:
EvaluationException - if an exception occurs during the evaluation

evaluateRecords

public abstract boolean evaluateRecords(R q,
                                        R m)
                                 throws Exception
Deprecated. 
Throws:
Exception

isRecordValidForEvaluation

public abstract boolean isRecordValidForEvaluation(R r)
Deprecated. 


Copyright © 2011-2012. All Rights Reserved.