public class FormulaUtil
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
FormulaUtil.FormulaMatchMemoMapKey |
Constructor and Description |
---|
FormulaUtil() |
Modifier and Type | Method and Description |
---|---|
static FormulaUtil.FormulaMatchMemoMapKey |
createFormulaMatchMemoMapKey(java.lang.String s1,
java.lang.String s2)
Factory method for the memo map
|
static java.util.List<int[]> |
getPermutations(int size,
java.util.function.BiPredicate<java.lang.Integer,java.lang.Integer> validateFn)
Generates all permutations of the given size which are valid according to the given callback function.
|
static java.lang.String |
toProlog(Formula f)
Must check that this is a simple clause before calling!
|
public static java.lang.String toProlog(Formula f)
public static java.util.List<int[]> getPermutations(int size, java.util.function.BiPredicate<java.lang.Integer,java.lang.Integer> validateFn)
size
- validateFn
- public static FormulaUtil.FormulaMatchMemoMapKey createFormulaMatchMemoMapKey(java.lang.String s1, java.lang.String s2)
s1
- s2
-