at.jku.risc.stout.urauc.data.atom
public abstract class TermAtom extends Printable implements Comparable<TermAtom>, Cloneable
Modifier and Type | Field and Description |
---|---|
static boolean |
DEBUG_POSITION |
static TermAtom |
nullAtom |
Constructor and Description |
---|
TermAtom(String name) |
TermAtom(String name,
int[] positionIndex) |
Modifier and Type | Method and Description |
---|---|
TermNode |
apply(Map<Variable,TermNode> sigma,
TermNode thisNode) |
TermAtom |
clone() |
int |
commonAncestor(TermAtom other) |
int |
compareTo(TermAtom o) |
boolean |
equals(Object obj) |
String |
getName() |
int[] |
getPositionIndex() |
String |
getPositionString(int idxStart,
int idx1Add) |
int |
hashCode() |
boolean |
isAncestor(TermAtom other) |
boolean |
isCommutative() |
void |
normalizeVarNames(Map<String,String> renaming) |
void |
print(Writer out) |
void |
setCommutative(boolean commutative) |
void |
setPositionIndex(int[] positionIndex) |
TermNode |
substitute(Variable from,
TermNode to,
TermNode thisNode) |
public static boolean DEBUG_POSITION
public static final TermAtom nullAtom
public TermAtom(String name)
public TermAtom(String name, int[] positionIndex)
public int commonAncestor(TermAtom other)
public int compareTo(TermAtom o)
compareTo
in interface Comparable<TermAtom>
public String getName()
public int[] getPositionIndex()
public String getPositionString(int idxStart, int idx1Add)
public boolean isAncestor(TermAtom other)
public boolean isCommutative()
public void print(Writer out) throws IOException
print
in class Printable
IOException
public void setCommutative(boolean commutative)
public void setPositionIndex(int[] positionIndex)