RISC JKU

at.jku.risc.stout.urauc.data

Class TermNode

    • Field Detail

      • POSITION_E

        public static final int[] POSITION_E
    • Method Detail

      • compareTo

        public int compareTo(TermNode other)
        This compare method treads commutativity by ordered argument sequences.
        Specified by:
        compareTo in interface Comparable<TermNode>
      • get

        public TermAtom get(int[] position,
                   int idx)
      • getHedge

        public Hedge getHedge()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • initPosition

        public void initPosition(int[] parentIndex,
                        int pos)
        Initializes all the position indexes recursively starting with the given position parentIndex.childPosition.
      • isHole

        public boolean isHole()
        Tests whether the atom of this term node is the hole.
      • isNullAtom

        public boolean isNullAtom()
        Tests whether the atom of this term node is the null atom.
      • makeAssociative

        public void makeAssociative(Set<TermAtom> associativeSymbols)
      • makeCommutative

        public void makeCommutative(Set<TermAtom> commutativeSymbols)
      • nextCommutativeArrangement

        public boolean nextCommutativeArrangement()
      • normalizeVarNames

        public void normalizeVarNames(Map<String,String> renaming)
      • replaceHole

        public TermNode replaceHole(TermNode plugIn)
        Replaces the hole in this context with the given TermNode (term | hedge | context). Returns null if no hole has been found, otherwise the new TermNode will be returned.
      • setPositionRecurse

        public void setPositionRecurse(int idx,
                              int value)
      • sortCommutative

        public void sortCommutative(boolean sortAll)