Enum SpecificationChromosome.SPEC_STATUS

  • All Implemented Interfaces:
    Serializable, Comparable<SpecificationChromosome.SPEC_STATUS>
    Enclosing class:
    SpecificationChromosome

    public static enum SpecificationChromosome.SPEC_STATUS
    extends Enum<SpecificationChromosome.SPEC_STATUS>
    The evaluation lattice of a candidate specification, ordered from completely broken to repaired:
                        /  ASSUMPTIONS  \
     UNKNOWN -- BOTTOM                    -- CONTRADICTORY -- UNREALIZABLE -- REALIZABLE
                        \  GUARANTEES   /
     

    The fitness function maps this ladder to graded scores (0.0, 0.05, 0.1, 0.2, 0.5, 1.0) so that partially fixed candidates still receive gradient — see AutomataBasedModelCountingSpecificationFitness. The GUARANTEES rung exists to distinguish the degenerate case of a specification that is "realisable" only because its assumptions are unsatisfiable (vacuous realisability, which conveys no intent).

    • Method Detail

      • values

        public static SpecificationChromosome.SPEC_STATUS[] 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 (SpecificationChromosome.SPEC_STATUS c : SpecificationChromosome.SPEC_STATUS.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SpecificationChromosome.SPEC_STATUS 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 name
        NullPointerException - if the argument is null
      • compatible

        public boolean compatible​(SpecificationChromosome.SPEC_STATUS other)
        Whether two statuses can meaningfully be combined during the search: both must be computed and not completely broken, and the pair must not consist of two individuals broken on the same side.
        Parameters:
        other - the status to combine with
        Returns:
        true iff the combination is admissible
      • areAssumptionsSAT

        public boolean areAssumptionsSAT()
        Returns:
        true iff this status implies the assumptions are satisfiable
      • areGuaranteesSAT

        public boolean areGuaranteesSAT()
        Returns:
        true iff this status implies the guarantees are satisfiable
      • isSpecificationConsistent

        public boolean isSpecificationConsistent()
        Returns:
        true iff the specification is consistent as a whole (assumptions and guarantees jointly satisfiable) — the precondition for computing the semantic-similarity ratios