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

Class Substitution



  • public class Substitution
    extends Object
    • Field Detail

      • MAPPING_SEPARATOR

        public static String MAPPING_SEPARATOR
        Default = "; "
      • SIGMA_END

        public static String SIGMA_END
        Default = "} "
      • SIGMA_MAPTO

        public static String SIGMA_MAPTO
        Default = " -> "
      • SIGMA_START

        public static String SIGMA_START
        Default = "{"
    • Constructor Detail

      • Substitution

        public Substitution()
    • Method Detail

      • clear

        public void clear()
        Removes all the mappings from a substitution.
      • compose

        public void compose(Variable fromVar,
                   TermNode toTerm)
        Substitution composition which does not add new variables to the mapping. (This is useful for generalization computation of AUPs.)
      • hashCode

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

        public void put(Variable fromVar,
               TermNode toTerm)
        Add a new mapping of the form: Variable -> Term.