| Modifier and Type | Field and Description |
|---|---|
private ProjectionToTerm |
varInst |
| Modifier | Constructor and Description |
|---|---|
private |
InstantiationCost(ProjectionToTerm var) |
| Modifier and Type | Method and Description |
|---|---|
RuleAppCost |
computeCost(RuleApp app,
PosInOccurrence pos,
Goal goal)
Compute the cost of a RuleApp.
|
static Feature |
create(ProjectionToTerm varInst) |
private final ProjectionToTerm varInst
private InstantiationCost(ProjectionToTerm var)
public static Feature create(ProjectionToTerm varInst)
public RuleAppCost computeCost(RuleApp app, PosInOccurrence pos, Goal goal)
computeCost in interface Featureapp - 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).