public enum WeightHeuristic extends Enum<WeightHeuristic>
Enum Constant and Description |
---|
BARYCENTER
A weight assignment specifier based on a barycenter heuristic.
|
MEDIAN
A weight assignment specifier based on a median heuristic.
|
Modifier and Type | Method and Description |
---|---|
static WeightHeuristic |
fromOrdinal(int ordinal) |
int |
value() |
static WeightHeuristic |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WeightHeuristic[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WeightHeuristic BARYCENTER
The position of a node within a layer will be determined by the barycenter of its successor (downward pass) and predecessor (upward pass) nodes.
public static final WeightHeuristic MEDIAN
The position of a node within a layer will be determined by the median position of its successor (downward pass) and predecessor (upward pass) nodes.
public static final WeightHeuristic fromOrdinal(int ordinal)
public int value()
public static WeightHeuristic valueOf(String name)
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullname
- the name of the enum constant to be returned.public static WeightHeuristic[] values()
for (WeightHeuristic c : WeightHeuristic.values()) System.out.println(c);