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
PosInOccurrence s are equal. |
boolean |
filter(TacletApp app,
PosInOccurrence pos,
Goal goal)
Compute whether the result of the feature is zero (
true )
or infinity (false ) |
containsRuleApp, semiSequentContains
noDuplicateFindTaclet, sameApplication
filter
computeCost
public static final Feature INSTANCE
public boolean filter(TacletApp app, PosInOccurrence pos, Goal goal)
BinaryTacletAppFeature
true
)
or infinity (false
)filter
in class NonDuplicateAppFeature
app
- 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)
AbstractNonDuplicateAppFeature
PosInOccurrence
s 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