Module logicng

Class PrimeResult


  • public final class PrimeResult
    extends Object
    Result of a prime computation.

    Contains a list of prime implicants, a list of prime implicates and the coverage type specifying which list is complete.

    Since:
    2.0.0
    Version:
    2.0.0
    • Constructor Detail

      • PrimeResult

        public PrimeResult​(List<SortedSet<Literal>> primeImplicants,
                           List<SortedSet<Literal>> primeImplicates,
                           PrimeResult.CoverageType coverageType)
        Constructs a new prime result.
        Parameters:
        primeImplicants - the list of prime implicants
        primeImplicates - the list of prime implicates
        coverageType - the coverage type
    • Method Detail

      • getPrimeImplicants

        public List<SortedSet<Literal>> getPrimeImplicants()
        Returns the list of prime implicants.
        Returns:
        the list of prime implicants
      • getPrimeImplicates

        public List<SortedSet<Literal>> getPrimeImplicates()
        Returns the list of prime implicates.
        Returns:
        the list of prime implicates
      • getCoverageType

        public PrimeResult.CoverageType getCoverageType()
        Returns the coverage type.
        Returns:
        the coverage type
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object