mxICostFunction
public class mxGeneratorRandomIntFunction extends mxGeneratorFunction
Constructor | Description |
---|---|
mxGeneratorRandomIntFunction(double minWeight,
double maxWeight) |
Modifier and Type | Method | Description |
---|---|---|
double |
getCost(mxCellState state) |
Evaluates the cost of the given cell state.
|
double |
getMaxWeight() |
|
double |
getMinWeight() |
|
void |
setWeightRange(double minWeight,
double maxWeight) |
public mxGeneratorRandomIntFunction(double minWeight, double maxWeight)
public double getCost(mxCellState state)
mxICostFunction
state
- The cell state to be evaluatedpublic double getMaxWeight()
public void setWeightRange(double minWeight, double maxWeight)
public double getMinWeight()
Copyright (c) 2010-2017 Gaudenz Alder, JGraph Ltd. All rights reserved.