Package openllet.core.rules.model
Class Rule
- java.lang.Object
-
- openllet.core.rules.model.Rule
-
public class Rule extends java.lang.Object
Title: 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 boolean
equals(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.ATermAppl
getName()
int
hashCode()
java.lang.String
toString()
-
-
-
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:
equals
in 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:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-