public enum StatIndex extends Enum<StatIndex>
| Modifier and Type | Method and Description |
|---|---|
static int |
choose(char c) |
protected static int |
getBranch(boolean pos,
int[] stat)
general access to a stat value by index
|
static int |
getDepth(boolean pos,
int[] stat)
general access to a stat value by index
|
protected static int |
getFreq(boolean pos,
int[] stat)
general access to a stat value by index
|
protected static int |
getGener(boolean pos,
int[] stat)
general access to a stat value by index
|
int |
getIndex(boolean pos) |
protected static int |
getSize(boolean pos,
int[] stat)
general access to a stat value by index
|
static void |
incFreqValue(boolean pos,
int[] stat)
increment frequency value
|
static void |
updateStatValues(DLVertex v,
boolean posV,
boolean pos,
int[] stat)
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)
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)
public static int choose(char c)
public static void updateStatValues(int d,
int s,
int b,
int g,
boolean pos,
int[] stat)
public static void updateStatValues(DLVertex v, boolean posV, boolean pos, int[] stat)
public static void incFreqValue(boolean pos,
int[] stat)
public static int getDepth(boolean pos,
int[] stat)
protected static int getSize(boolean pos,
int[] stat)
protected static int getBranch(boolean pos,
int[] stat)
protected static int getGener(boolean pos,
int[] stat)
protected static int getFreq(boolean pos,
int[] stat)
Copyright © 2013 The University of Manchester. All Rights Reserved.