Package cdc.enums

Enum Class SynthesisStatus

java.lang.Object
java.lang.Enum<SynthesisStatus>
cdc.enums.SynthesisStatus
All Implemented Interfaces:
cdc.util.encoding.Encoded<Character>, Serializable, Comparable<SynthesisStatus>, Constable

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
  • Enum Constant Details

    • 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 Details

  • Method Details

    • values

      public static SynthesisStatus[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SynthesisStatus valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getCode

      public Character getCode()
      Specified by:
      getCode in interface cdc.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.