org.dllearner.prolog
Class Atom
java.lang.Object
org.dllearner.prolog.Atom
public class Atom
- extends Object
- Author:
- Sebastian Bader
Atom
public Atom(String name,
ArrayList<Term> arguments)
getArguments
public ArrayList<Term> getArguments()
getName
public String getName()
isGround
public boolean isGround()
getArgument
public Term getArgument(int index)
getArity
public int getArity()
getInstance
public Atom getInstance(Variable variable,
Term term)
- Parameters:
variable - Substitution variable.term - A term.
- Returns:
- Returns a new instance of this term, where the variable is
replaced by the term.
toString
public String toString()
- Overrides:
toString in class Object
toPLString
public String toPLString()
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2011 Jens Lehmann