org.inria.myriads.snoozecommon.communication
public enum NodeRole extends Enum<NodeRole>
Enum Constant and Description |
---|
bootstrap
Bootstrap.
|
groupmanager
Group manager.
|
localcontroller
Local controller.
|
Modifier and Type | Method and Description |
---|---|
static NodeRole |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NodeRole[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NodeRole bootstrap
public static final NodeRole groupmanager
public static final NodeRole localcontroller
public static NodeRole[] values()
for (NodeRole c : NodeRole.values()) System.out.println(c);
public static NodeRole 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 nullCopyright © 2013. All Rights Reserved.