Class AdornedClause
java.lang.Object
edu.harvard.seas.pl.abcdatalog.engine.topdown.AdornedClause
An adorned clause (i.e., a Horn clause where every atom is itself adorned).
-
Constructor Summary
ConstructorDescriptionAdornedClause
(AdornedAtom head, List<AdornedAtom> body) Constructs an adorned clause given an adorned atom for the head and a list of adorned atoms for the body. -
Method Summary
Modifier and TypeMethodDescriptionboolean
static AdornedClause
fromClause
(List<Boolean> headAdornment, DatalogValidator.ValidClause clause) Constructs an adorned clause given an adornment to apply to the head and clause to adorn.getBody()
getHead()
int
hashCode()
toString()
-
Constructor Details
-
AdornedClause
Constructs an adorned clause given an adorned atom for the head and a list of adorned atoms for the body.- Parameters:
head
- head atom of clausebody
- atoms for body of clause
-
-
Method Details
-
fromClause
public static AdornedClause fromClause(List<Boolean> headAdornment, DatalogValidator.ValidClause clause) Constructs an adorned clause given an adornment to apply to the head and clause to adorn. The head adornment ripples left to right across the atoms in the body.- Parameters:
headAdornment
- adornment for head atom. A true value implies that that term is bound, false implies free.clause
- original clause
-
toString
-
hashCode
public int hashCode() -
equals
-
getBody
-
getHead
-