public class ImplicitCastNecessary extends BinaryFeature
Modifier and Type | Field and Description |
---|---|
private ProjectionToTerm |
projection |
TOP_COST, ZERO_COST
Modifier | Constructor and Description |
---|---|
private |
ImplicitCastNecessary(ProjectionToTerm projection) |
Modifier and Type | Method and Description |
---|---|
static Feature |
create(ProjectionToTerm s1) |
protected boolean |
filter(RuleApp app,
PosInOccurrence pos,
Goal goal)
Compute whether the result of the feature is zero (
true )
or infinity (false ) |
computeCost
private final ProjectionToTerm projection
private ImplicitCastNecessary(ProjectionToTerm projection)
protected 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 appliedpublic static Feature create(ProjectionToTerm s1)