public enum NodeCycles extends Enum<NodeCycles>
NodeSize for further information on how to determine a value for a new node.| Enum Constant and Description |
|---|
CYCLES_0
Nodes that do not consume any CPU time during the "execution", e.g.
|
CYCLES_1 |
CYCLES_1024 |
CYCLES_128 |
CYCLES_16 |
CYCLES_2 |
CYCLES_256 |
CYCLES_32 |
CYCLES_4 |
CYCLES_512 |
CYCLES_64 |
CYCLES_8 |
CYCLES_IGNORED
Nodes for which runtime information is irrelevant and can be ignored, e.g.
|
CYCLES_UNKNOWN
Nodes for which, due to arbitrary reasons, no estimation can be made either (1) statically
without inspecting the properties of a node or (2) at all (like e.g.
|
CYCLES_UNSET
The default value of the
NodeInfo.cycles() property. |
| Modifier and Type | Field and Description |
|---|---|
static int |
IGNORE_CYCLES_CONTRACT_FACTOR |
int |
value |
| Modifier and Type | Method and Description |
|---|---|
static NodeCycles |
compute(int rawValue) |
static NodeCycles |
compute(NodeCycles base,
int opCount) |
boolean |
isValueKnown() |
static NodeCycles |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NodeCycles[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NodeCycles CYCLES_UNSET
NodeInfo.cycles() property.
For further information about the use of CYCLES_UNSET see NodeInfo.cycles().
public static final NodeCycles CYCLES_UNKNOWN
Nodes annotated with CYCLES_UNKNOWN should specify the
NodeInfo.cyclesRationale() property to clarify why an estimation cannot be done.
public static final NodeCycles CYCLES_IGNORED
public static final NodeCycles CYCLES_0
public static final NodeCycles CYCLES_1
public static final NodeCycles CYCLES_2
public static final NodeCycles CYCLES_4
public static final NodeCycles CYCLES_8
public static final NodeCycles CYCLES_16
public static final NodeCycles CYCLES_32
public static final NodeCycles CYCLES_64
public static final NodeCycles CYCLES_128
public static final NodeCycles CYCLES_256
public static final NodeCycles CYCLES_512
public static final NodeCycles CYCLES_1024
public final int value
public static final int IGNORE_CYCLES_CONTRACT_FACTOR
public static NodeCycles[] values()
public static NodeCycles 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 boolean isValueKnown()
public static NodeCycles compute(NodeCycles base, int opCount)
public static NodeCycles compute(int rawValue)