public class FormulaAddedByRuleFeature extends BinaryFeature
RuleFilter
)Modifier and Type | Field and Description |
---|---|
private RuleFilter |
filter |
TOP_COST, ZERO_COST
Modifier | Constructor and Description |
---|---|
private |
FormulaAddedByRuleFeature(RuleFilter p_filter) |
Modifier and Type | Method and Description |
---|---|
static Feature |
create(RuleFilter p_filter) |
boolean |
filter(RuleApp app,
PosInOccurrence pos,
Goal goal)
Compute whether the result of the feature is zero (
true )
or infinity (false ) |
computeCost
private final RuleFilter filter
private FormulaAddedByRuleFeature(RuleFilter p_filter)
public static Feature create(RuleFilter p_filter)
public boolean filter(RuleApp app, PosInOccurrence pos, Goal goal)
BinaryFeature
true
)
or infinity (false
)filter
in class BinaryFeature
app
- the RuleApppos
- position where app
is to be appliedgoal
- the goal on which app
is to be applied