public enum StatIndex extends Enum<StatIndex>
| Enum Constant and Description |
|---|
BRANCH
Branch
|
DEPTH
Depth
|
FREQ
Freq
|
GENER
Gener
|
SIZE
Size
|
| Modifier and Type | Method and Description |
|---|---|
static int |
choose(char c) |
static int |
getDepth(boolean pos,
int[] stat)
general access to a stat value by index
|
int |
getIndex(boolean pos) |
static void |
incFreqValue(boolean pos,
int[] stat)
increment frequency value
|
static void |
updateStatValues(DLVertex v,
boolean posV,
boolean pos,
int[] stat,
boolean debug)
add-up all values at once by a given vertex
|
static void |
updateStatValues(int d,
int s,
int b,
int g,
boolean pos,
int[] stat,
boolean debug)
add-up all stat values at once by explicit values
|
static StatIndex |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StatIndex[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StatIndex DEPTH
public static final StatIndex SIZE
public static final StatIndex BRANCH
public static final StatIndex GENER
public static final StatIndex FREQ
public static StatIndex[] values()
for (StatIndex c : StatIndex.values()) System.out.println(c);
public static StatIndex valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getIndex(boolean pos)
pos - positive or negativepublic static int choose(char c)
c - statpublic static void updateStatValues(int d,
int s,
int b,
int g,
boolean pos,
int[] stat,
boolean debug)
d - ds - sb - bg - gpos - posstat - statdebug - true if debug valuespublic static void updateStatValues(DLVertex v, boolean posV, boolean pos, int[] stat, boolean debug)
v - vposV - posVpos - posstat - statdebug - true if debug valuespublic static void incFreqValue(boolean pos,
int[] stat)
pos - posstat - statpublic static int getDepth(boolean pos,
int[] stat)
pos - posstat - statCopyright © 2018 The University of Manchester. All rights reserved.