public class Formula
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
CHECK_TERM |
ATerm[] |
condition |
Creator |
creator |
static int |
EXPAND_TERM |
static int |
SCAN_TERM |
Constructor and Description |
---|
Formula(Creator creator,
ATerm[] condition,
boolean[] positive,
GroundingPlan groundingPlan,
CRFState crfState) |
Modifier and Type | Method and Description |
---|---|
boolean |
canMatch(int i,
boolean positive) |
java.lang.String |
conditionToString(Binds binds) |
boolean |
groundOut(Binds binds,
IndexEntry[] found,
java.util.List<java.lang.Integer> conditions) |
boolean |
isPositive(int i) |
int |
termType(int i) |
java.lang.String |
toString() |
void |
uncreate() |
public Creator creator
public ATerm[] condition
public static final int SCAN_TERM
public static final int CHECK_TERM
public static final int EXPAND_TERM
public Formula(Creator creator, ATerm[] condition, boolean[] positive, GroundingPlan groundingPlan, CRFState crfState)
public java.lang.String conditionToString(Binds binds)
public java.lang.String toString()
toString
in class java.lang.Object
public void uncreate()
public boolean groundOut(Binds binds, IndexEntry[] found, java.util.List<java.lang.Integer> conditions)
public final boolean isPositive(int i)
public final int termType(int i)
public final boolean canMatch(int i, boolean positive)