| Modifier and Type | Field and Description |
|---|---|
private RuleAppCost |
val |
| Modifier | Constructor and Description |
|---|---|
private |
ConstFeature(RuleAppCost p_val) |
| Modifier and Type | Method and Description |
|---|---|
RuleAppCost |
computeCost(RuleApp app,
PosInOccurrence pos,
Goal goal)
Evaluate the cost of a
RuleApp. |
static Feature |
createConst(RuleAppCost p_val) |
RuleAppCost |
getValue() |
private final RuleAppCost val
private ConstFeature(RuleAppCost p_val)
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 static Feature createConst(RuleAppCost p_val)
public final RuleAppCost getValue()