use of org.talend.dataquality.rules.AlgorithmDefinition in project tdq-studio-se by Talend.
the class BlockKeyDefinitionImpl method basicSetPostAlgorithm.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetPostAlgorithm(AlgorithmDefinition newPostAlgorithm, NotificationChain msgs) {
AlgorithmDefinition oldPostAlgorithm = postAlgorithm;
postAlgorithm = newPostAlgorithm;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, RulesPackage.BLOCK_KEY_DEFINITION__POST_ALGORITHM, oldPostAlgorithm, newPostAlgorithm);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
use of org.talend.dataquality.rules.AlgorithmDefinition in project tdq-studio-se by Talend.
the class BlockKeyDefinitionImpl method basicSetAlgorithm.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetAlgorithm(AlgorithmDefinition newAlgorithm, NotificationChain msgs) {
AlgorithmDefinition oldAlgorithm = algorithm;
algorithm = newAlgorithm;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, RulesPackage.BLOCK_KEY_DEFINITION__ALGORITHM, oldAlgorithm, newAlgorithm);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
use of org.talend.dataquality.rules.AlgorithmDefinition in project tdq-studio-se by Talend.
the class BlockKeyDefinitionImpl method basicSetPreAlgorithm.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetPreAlgorithm(AlgorithmDefinition newPreAlgorithm, NotificationChain msgs) {
AlgorithmDefinition oldPreAlgorithm = preAlgorithm;
preAlgorithm = newPreAlgorithm;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, RulesPackage.BLOCK_KEY_DEFINITION__PRE_ALGORITHM, oldPreAlgorithm, newPreAlgorithm);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
use of org.talend.dataquality.rules.AlgorithmDefinition in project tdq-studio-se by Talend.
the class DefaultSurvivorshipDefinitionImpl method basicSetFunction.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetFunction(AlgorithmDefinition newFunction, NotificationChain msgs) {
AlgorithmDefinition oldFunction = function;
function = newFunction;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, RulesPackage.DEFAULT_SURVIVORSHIP_DEFINITION__FUNCTION, oldFunction, newFunction);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
use of org.talend.dataquality.rules.AlgorithmDefinition in project tdq-studio-se by Talend.
the class MatchAnalysisExecutorTest method createMatchIndicatorWithOneMathRule.
/**
* DOC zhao Comment method "createMatchIndicatorWithOneMathRule".
*
* @param nameVar
* @param matchIndicator
* @param groupQualityThreshold
* @param matchInterval
*/
private void createMatchIndicatorWithOneMathRule(String nameVar, RecordMatchingIndicator matchIndicator, double groupQualityThreshold, double matchInterval) {
MatchRuleDefinition matchRuleDefinition = RulesPackage.eINSTANCE.getRulesFactory().createMatchRuleDefinition();
matchRuleDefinition.setMatchGroupQualityThreshold(groupQualityThreshold);
MatchRule matchRule = RulesPackage.eINSTANCE.getRulesFactory().createMatchRule();
matchRule.setMatchInterval(matchInterval);
matchRule.setName("match rule 1");
MatchKeyDefinition matchkeyDef = RulesPackage.eINSTANCE.getRulesFactory().createMatchKeyDefinition();
matchkeyDef.setName(nameVar);
matchkeyDef.setColumn(nameVar);
AlgorithmDefinition algoDef = RulesPackage.eINSTANCE.getRulesFactory().createAlgorithmDefinition();
algoDef.setAlgorithmType(AttributeMatcherType.LEVENSHTEIN.name());
matchkeyDef.setAlgorithm(algoDef);
matchkeyDef.setConfidenceWeight(1);
matchRule.getMatchKeys().add(matchkeyDef);
matchRuleDefinition.getMatchRules().add(matchRule);
matchIndicator.setBuiltInMatchRuleDefinition(matchRuleDefinition);
}
Aggregations