public class RuleSetDispatchFeature extends java.lang.Object implements Feature
| Modifier and Type | Field and Description | 
|---|---|
private java.util.Map<RuleSet,Feature> | 
rulesetToFeature  | 
| Constructor and Description | 
|---|
RuleSetDispatchFeature()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
add(RuleSet ruleSet,
   Feature f)
Bind feature  
f to the rule set ruleSet. | 
void | 
clear(RuleSet ruleSet)
Remove all features that have been related to  
ruleSet. | 
RuleAppCost | 
computeCost(RuleApp app,
           PosInOccurrence pos,
           Goal goal)
Evaluate the cost of a  
RuleApp. | 
Feature | 
get(RuleSet ruleSet)
 | 
public RuleAppCost computeCost(RuleApp app, PosInOccurrence pos, Goal goal)
FeatureRuleApp.computeCost in interface Featureapp - the RuleApppos - position where app is to be appliedgoal - the goal on which app is to be appliedRuleAppCost object. TopRuleAppCost.INSTANCE
 indicates that the rule shall not be applied at all (it is discarded by
 the strategy).public void add(RuleSet ruleSet, Feature f)
f to the rule set ruleSet. If
 this method is called more than once for the same rule set, the given
 features are added to each other.public void clear(RuleSet ruleSet)
ruleSet.