public class NonDuplicateAppModPositionFeature extends NonDuplicateAppFeature
| Modifier and Type | Field and Description |
|---|---|
static Feature |
INSTANCE |
TOP_COST, ZERO_COST| Constructor and Description |
|---|
NonDuplicateAppModPositionFeature() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
comparePio(TacletApp newApp,
TacletApp oldApp,
PosInOccurrence newPio,
PosInOccurrence oldPio)
Compare whether two
PosInOccurrences are equal. |
boolean |
filter(TacletApp app,
PosInOccurrence pos,
Goal goal)
Compute whether the result of the feature is zero (
true)
or infinity (false) |
containsRuleApp, semiSequentContainsnoDuplicateFindTaclet, sameApplicationfiltercomputeCostpublic static final Feature INSTANCE
public boolean filter(TacletApp app, PosInOccurrence pos, Goal goal)
BinaryTacletAppFeaturetrue)
or infinity (false)filter in class NonDuplicateAppFeatureapp - the TacletApppos - position where app is to be appliedgoal - the goal on which app is to be appliedprotected boolean comparePio(TacletApp newApp, TacletApp oldApp, PosInOccurrence newPio, PosInOccurrence oldPio)
AbstractNonDuplicateAppFeaturePosInOccurrences are equal. This can be
done using equals or eqEquals (checking for
same or equal formulas), which has to be decided by the subclassescomparePio in class NonDuplicateAppFeature