public class AntiUnifySystem
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
BRANCH_COUNT |
static java.util.Queue<AntiUnifySystem> |
branchPointer |
static DebugLevel |
debugLevel |
static java.io.PrintStream |
debugOut |
static boolean |
ENABLE_COMMUTATIVE_RULES |
static boolean |
ENABLE_SPLIT_RULE |
static TermGraph |
G1 |
static TermGraph |
G2 |
static NodeFactory |
nf |
static java.lang.String |
OUTPUT_SEPARATOR |
static RigidityFnc |
rFnc |
static RigidityFnc |
rFncC |
Constructor and Description |
---|
AntiUnifySystem(java.util.Deque<PrintableX> problemSet,
java.util.List<HedgeAUP> storeH,
java.util.List<HedgeAUP> storeC,
java.util.List<TermAUP> storeT,
java.util.Map<TermAUP,TermVar> trail,
TermGraph g)
Most likely you don't need this constructor because the algorithm is
encapsulated in the class AntiUnify which is much easier to use.
|
Modifier and Type | Method and Description |
---|---|
TermGraph |
compute()
Most likely you don't need this method because the algorithm is encapsulated
in the class AntiUnify which is much easier to use.
|
void |
doDecSBranch(HedgeAUP hAup,
AlignmentList align,
int idx) |
int |
getBranchId() |
TermGraph |
getGraph() |
java.util.Deque<PrintableX> |
getProblemSet() |
java.util.List<? super PrintableX> |
getStore()
|
java.util.List<HedgeAUP> |
getStoreC()
Store for HedgeAUPs where the order does not matter (commutative
AUPs and AUPs that only consist of 0 or 1 arguments).
|
java.util.List<HedgeAUP> |
getStoreH()
Store for HedgeAUPs where the order matters (not commutative
AUPs where one side has at least 2 arguments).
|
java.util.List<TermAUP> |
getStoreT()
Store for TermAUPs.
|
java.util.Map<TermAUP,TermVar> |
getTrail() |
void |
mergeStore(java.util.List<? extends BaseAUP> store) |
void |
printTrail() |
public static int BRANCH_COUNT
public static java.util.Queue<AntiUnifySystem> branchPointer
public static DebugLevel debugLevel
public static java.io.PrintStream debugOut
public static boolean ENABLE_COMMUTATIVE_RULES
public static boolean ENABLE_SPLIT_RULE
public static TermGraph G1
public static TermGraph G2
public static NodeFactory nf
public static java.lang.String OUTPUT_SEPARATOR
public static RigidityFnc rFnc
public static RigidityFnc rFncC
public AntiUnifySystem(java.util.Deque<PrintableX> problemSet, java.util.List<HedgeAUP> storeH, java.util.List<HedgeAUP> storeC, java.util.List<TermAUP> storeT, java.util.Map<TermAUP,TermVar> trail, TermGraph g)
problemSet
- The set of AUPs to be generalized.storeH
- The none-commutative store keeps track of solved hedge equations
that are not commutative.storeC
- The commutative store that keeps track of solved hedge equations
that are commutative.storeT
- The term store that keeps track of solved term equations.trail
- The trail keeps track of recursion variables.g
- The computed generalization. It is a term graph.public TermGraph compute() throws IllegalAlignmentException
IllegalAlignmentException
public void doDecSBranch(HedgeAUP hAup, AlignmentList align, int idx) throws IllegalAlignmentException
IllegalAlignmentException
public int getBranchId()
public TermGraph getGraph()
public java.util.Deque<PrintableX> getProblemSet()
public java.util.List<? super PrintableX> getStore()
public java.util.List<HedgeAUP> getStoreC()
public java.util.List<HedgeAUP> getStoreH()
public void mergeStore(java.util.List<? extends BaseAUP> store)
public void printTrail()