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