RISC JKU
at.jku.risc.stout.tgau.algo

Class TermAUP

  • All Implemented Interfaces:
    Printable, java.lang.Comparable<TermAUP>


    public class TermAUP
    extends BaseAUP
    implements java.lang.Comparable<TermAUP>
    This class represents an anti-unification problem (AUP) which consists of one generalization variable (the most general generalization), and two Terms. The term nodes represent the left hand side and the right hand side of the equation.
    Author:
    Alexander Baumgartner
    • Constructor Detail

      • TermAUP

        public TermAUP(TermVar generalizationVar,
                       TermVar left,
                       TermVar right)
        Create an AUP with the given generalization variable and hedges.
    • Method Detail

      • compareTo

        public int compareTo(TermAUP o)
        Specified by:
        compareTo in interface java.lang.Comparable<TermAUP>
      • equals

        public boolean equals(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • getLeft

        public java.lang.Object getLeft()
        Specified by:
        getLeft in class BaseAUP
      • getRight

        public java.lang.Object getRight()
        Specified by:
        getRight in class BaseAUP
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • print

        public void print(java.io.Writer out)
                   throws java.io.IOException
        Specified by:
        print in interface Printable
        Throws:
        java.io.IOException