public class ContainsLabelNameFeature extends BinaryFeature
| Modifier and Type | Field and Description |
|---|---|
private Name |
labelName |
TOP_COST, ZERO_COST| Constructor and Description |
|---|
ContainsLabelNameFeature(Name labelName) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
filter(RuleApp app,
PosInOccurrence pos,
Goal goal)
Compute whether the result of the feature is zero (
true)
or infinity (false) |
computeCostprivate final Name labelName
public ContainsLabelNameFeature(Name labelName)
protected boolean filter(RuleApp app, PosInOccurrence pos, Goal goal)
BinaryFeaturetrue)
or infinity (false)filter in class BinaryFeatureapp - the RuleApppos - position where app is to be appliedgoal - the goal on which app is to be applied