Package openllet.core.rules.model
Class Rule
- java.lang.Object
-
- openllet.core.rules.model.Rule
-
public class Rule extends java.lang.ObjectTitle: Rule
Copyright: Copyright (c) 2007
Company: Clark & Parsia, LLC.
- Author:
- Ron Alford
-
-
Constructor Summary
Constructors Constructor Description Rule(java.util.List<? extends RuleAtom> head, java.util.List<? extends RuleAtom> body)Rule(java.util.List<? extends RuleAtom> head, java.util.List<? extends RuleAtom> body, java.util.Set<openllet.aterm.ATermAppl> explanation)Rule(openllet.aterm.ATermAppl name, java.util.List<? extends RuleAtom> head, java.util.List<? extends RuleAtom> body)Rule(openllet.aterm.ATermAppl name, java.util.List<? extends RuleAtom> head, java.util.List<? extends RuleAtom> body, java.util.Set<openllet.aterm.ATermAppl> explanation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)java.util.Collection<? extends RuleAtom>getBody()java.util.Set<openllet.aterm.ATermAppl>getExplanation(RulesToATermTranslator translator)java.util.Collection<? extends RuleAtom>getHead()openllet.aterm.ATermApplgetName()inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
Rule
public Rule(java.util.List<? extends RuleAtom> head, java.util.List<? extends RuleAtom> body, java.util.Set<openllet.aterm.ATermAppl> explanation)
-
Rule
public Rule(openllet.aterm.ATermAppl name, java.util.List<? extends RuleAtom> head, java.util.List<? extends RuleAtom> body)
-
-
Method Detail
-
getExplanation
public java.util.Set<openllet.aterm.ATermAppl> getExplanation(RulesToATermTranslator translator)
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
getBody
public java.util.Collection<? extends RuleAtom> getBody()
-
getHead
public java.util.Collection<? extends RuleAtom> getHead()
-
getName
public openllet.aterm.ATermAppl getName()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-