public class MergeRuleFeature extends java.lang.Object implements Feature
MergeRule
; cheap if the first statement in the chosen
top-level formula is a MergePointStatement
, otherwise, infinitely
expensive.Modifier | Constructor and Description |
---|---|
private |
MergeRuleFeature() |
Modifier and Type | Method and Description |
---|---|
RuleAppCost |
computeCost(RuleApp app,
PosInOccurrence pos,
Goal goal)
Evaluate the cost of a
RuleApp . |
public static final Feature INSTANCE
public RuleAppCost computeCost(RuleApp app, PosInOccurrence pos, Goal goal)
Feature
RuleApp
.computeCost
in interface Feature
app
- 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).