Package cdc.enums
Enum SynthesisStatus
- java.lang.Object
-
- java.lang.Enum<SynthesisStatus>
-
- cdc.enums.SynthesisStatus
-
- All Implemented Interfaces:
cdc.util.encoding.Encoded<Character>,Serializable,Comparable<SynthesisStatus>
public enum SynthesisStatus extends Enum<SynthesisStatus> implements cdc.util.encoding.Encoded<Character>
Enumeration of synthesis statuses.This can be used to characterize data coming from different sources.
- Author:
- Damien Carbonne
-
-
Field Summary
Fields Modifier and Type Field Description static cdc.util.encoding.Encoder<SynthesisStatus,Character>ENCODER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CharactergetCode()SynthesisStatusmerge(SynthesisStatus other)Merges this status with another one.static SynthesisStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static SynthesisStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNDEFINED
public static final SynthesisStatus UNDEFINED
No source is available.
-
NONE
public static final SynthesisStatus NONE
All sources agree to say that something is false.
-
PARTIAL
public static final SynthesisStatus PARTIAL
Some source agree to say that something is true, others that it is false.
-
ALL
public static final SynthesisStatus ALL
All sources agree to say that something is true.
-
-
Field Detail
-
ENCODER
public static final cdc.util.encoding.Encoder<SynthesisStatus,Character> ENCODER
-
-
Method Detail
-
values
public static SynthesisStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SynthesisStatus c : SynthesisStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SynthesisStatus valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getCode
public Character getCode()
- Specified by:
getCodein interfacecdc.util.encoding.Encoded<Character>
-
merge
public SynthesisStatus merge(SynthesisStatus other)
Merges this status with another one.The logic is:
U N P F U U N P F N N N P P P P P P P F F P P F - Parameters:
other- The other synthesis status.- Returns:
- The merge of this status with
other.
-
-