public class mxConstantCostFunction extends Object implements mxICostFunction
Modifier and Type | Field and Description |
---|---|
protected double |
cost |
Constructor and Description |
---|
mxConstantCostFunction(double cost) |
Modifier and Type | Method and Description |
---|---|
double |
getCost(mxCellState state)
Evaluates the cost of the given cell state.
|
public mxConstantCostFunction(double cost)
cost
- public double getCost(mxCellState state)
mxICostFunction
getCost
in interface mxICostFunction
state
- The cell state to be evaluatedCopyright (c) 2010 Gaudenz Alder, David Benson. All rights reserved.