public class FindRightishFeature extends java.lang.Object implements Feature
| Modifier and Type | Field and Description |
|---|---|
private Operator |
add |
private static RuleAppCost |
one |
| Modifier | Constructor and Description |
|---|---|
private |
FindRightishFeature(IntegerLDT numbers) |
| Modifier and Type | Method and Description |
|---|---|
RuleAppCost |
computeCost(RuleApp app,
PosInOccurrence pos,
Goal goal)
Evaluate the cost of a
RuleApp. |
static Feature |
create(IntegerLDT numbers) |
private final Operator add
private static final RuleAppCost one
private FindRightishFeature(IntegerLDT numbers)
public static Feature create(IntegerLDT numbers)
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).