Modifier and Type | Class and Description |
---|---|
private class |
OneOfCP.CP |
Modifier and Type | Field and Description |
---|---|
private ChoicePoint |
cp |
private Feature[] |
features |
private BackTrackingManager |
manager |
private int |
theChosenOne |
Modifier | Constructor and Description |
---|---|
private |
OneOfCP(BackTrackingManager manager,
Feature[] features) |
Modifier and Type | Method and Description |
---|---|
RuleAppCost |
computeCost(RuleApp app,
PosInOccurrence pos,
Goal goal)
Evaluate the cost of a
RuleApp . |
static Feature |
create(Feature[] features,
BackTrackingManager manager) |
private final BackTrackingManager manager
private final Feature[] features
private int theChosenOne
private final ChoicePoint cp
private OneOfCP(BackTrackingManager manager, Feature[] features)
public static Feature create(Feature[] features, BackTrackingManager manager)
public RuleAppCost computeCost(RuleApp app, PosInOccurrence pos, Goal goal)
Feature
RuleApp
.computeCost
in interface Feature
app
- 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).