public class Solution
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static boolean |
CONSISTENT_KB
Indicates whether the fuzzy KB is consistent.
|
static boolean |
INCONSISTENT_KB
Indicates whether the fuzzy KB is inconsistent.
|
Constructor and Description |
---|
Solution(boolean consistent)
Creates a new Solution, indicating whether the original KB is consistent.
|
Solution(double sol)
Creates a new Solution, with the result of a query over a consistent KB.
|
Modifier and Type | Method and Description |
---|---|
double |
getSolution()
Gets the solution to some query over a consistent KB.
|
boolean |
isConsistentKB()
Indicates whether the original KB is consistent or not.
|
java.lang.String |
toString()
Gets a printable name of the solution.
|
public static final boolean CONSISTENT_KB
public static final boolean INCONSISTENT_KB
public Solution(boolean consistent)
consistent
- True if the original KB is consistent, false if contrary.public Solution(double sol)
sol
- Solution to some query over a consistent KB.public boolean isConsistentKB()
public double getSolution()
public java.lang.String toString()
toString
in class java.lang.Object