| Modifier and Type | Field and Description |
|---|---|
private Feature |
f |
private java.lang.String |
prefix |
| Constructor and Description |
|---|
PrintFeature(Feature f) |
PrintFeature(java.lang.String prefix,
Feature f) |
| Modifier and Type | Method and Description |
|---|---|
RuleAppCost |
computeCost(RuleApp app,
PosInOccurrence pos,
Goal goal)
Evaluate the cost of a
RuleApp. |
private final Feature f
private final java.lang.String prefix
public PrintFeature(java.lang.String prefix,
Feature f)
public PrintFeature(Feature f)
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).