Modifier and Type | Method and Description |
---|---|
static Trit |
mutate(Trit cur)
retourne un trit al�atoire diff�rent de cur
|
static Trit |
random()
Produit un trit al�atoirement
# : 50%
0 : 25%
1 : 25%
|
static Trit |
toTrit(Signal.Direction d)
retourne le trit correspondant � la direction d
|
static Trit |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Trit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Trit BIT0
public static final Trit BIT1
public static final Trit UNDEFINED
public static Trit[] values()
for (Trit c : Trit.values()) System.out.println(c);
public static Trit valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static Trit random()
public static Trit toTrit(Signal.Direction d)