mxICostFunction
public class mxGeneratorRandomFunction extends mxGeneratorFunction
Constructor | Description |
---|---|
mxGeneratorRandomFunction(double minWeight,
double maxWeight,
int roundToDecimals) |
Modifier and Type | Method | Description |
---|---|---|
double |
getCost(mxCellState state) |
Evaluates the cost of the given cell state.
|
double |
getMaxWeight() |
|
double |
getMinWeight() |
|
int |
getRoundToDecimals() |
|
void |
setRoundToDecimals(int roundToDecimals) |
|
void |
setWeightRange(double minWeight,
double maxWeight) |
public mxGeneratorRandomFunction(double minWeight, double maxWeight, int roundToDecimals)
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()
public int getRoundToDecimals()
public void setRoundToDecimals(int roundToDecimals)
Copyright (c) 2010-2017 Gaudenz Alder, JGraph Ltd. All rights reserved.