- java.lang.Object
-
- org.logicng.primecomputation.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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPrimeResult.CoverageTypeThe coverage type.
-
Constructor Summary
Constructors Constructor Description PrimeResult(List<SortedSet<Literal>> primeImplicants, List<SortedSet<Literal>> primeImplicates, PrimeResult.CoverageType coverageType)Constructs a new prime result.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)PrimeResult.CoverageTypegetCoverageType()Returns the coverage type.List<SortedSet<Literal>>getPrimeImplicants()Returns the list of prime implicants.List<SortedSet<Literal>>getPrimeImplicates()Returns the list of prime implicates.inthashCode()StringtoString()
-
-
-
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 implicantsprimeImplicates- the list of prime implicatescoverageType- 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
-
-