public class CostStrategyWeightsImpl extends java.lang.Object implements CostStrategyConfiguration
Modifier and Type | Field and Description |
---|---|
protected int[] |
w |
Constructor and Description |
---|
CostStrategyWeightsImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName() |
int |
getWeightBaseCostForNoMatch() |
int |
getWeightGlobalStructure() |
int |
getWeightMatched() |
int |
getWeightNoMatch() |
void |
setName(java.lang.String name) |
void |
setWeightBaseCostForNoMatch(int c) |
void |
setWeightGlobalStructure(int w) |
void |
setWeightMatched(int w) |
void |
setWeightNoMatch(int w) |
public int getWeightMatched()
getWeightMatched
in interface CostStrategyConfiguration
public int getWeightNoMatch()
getWeightNoMatch
in interface CostStrategyConfiguration
public int getWeightGlobalStructure()
getWeightGlobalStructure
in interface CostStrategyConfiguration
public void setWeightMatched(int w)
setWeightMatched
in interface CostStrategyConfiguration
public void setWeightNoMatch(int w)
setWeightNoMatch
in interface CostStrategyConfiguration
public void setWeightGlobalStructure(int w)
setWeightGlobalStructure
in interface CostStrategyConfiguration
public int getWeightBaseCostForNoMatch()
getWeightBaseCostForNoMatch
in interface CostStrategyConfiguration
public java.lang.String getName()
getName
in interface CostStrategyConfiguration
public void setName(java.lang.String name)
setName
in interface CostStrategyConfiguration
public void setWeightBaseCostForNoMatch(int c)
setWeightBaseCostForNoMatch
in interface CostStrategyConfiguration
c
- with precondition that c >= 0