RISC JKU

at.jku.risc.stout.nau.data.atom

Class Permutation

    • Field Detail

      • idString

        public static String idString
    • Constructor Detail

      • Permutation

        public Permutation()
      • Permutation

        public Permutation(int initSize)
    • Method Detail

      • clear

        public void clear()
      • compose

        public static Permutation compose(Permutation permHeadLeft,
                          Permutation permTailRight)
        Returns a new permutation which is a composition of the two given ones.
      • getDisagreementSet

        public Set<Atom[]> getDisagreementSet(Permutation otherPerm,
                                     Variable var,
                                     FreshnessCtx nabla)
        Returns the set of disagreements between this permutation and another one.
      • getInverse

        public Map<Atom,Atom> getInverse()
        The internal Map representation of the inverse permutation.
      • getPerm

        public Map<Atom,Atom> getPerm()
        The internal Map representation of the permutation.
      • inverse

        public Permutation inverse()
        Returns the inverse permutation of this one. It uses the same data references such that changes are reflected!
      • isEmpty

        public boolean isEmpty()
      • permute

        public Atom permute(Atom key)
        Applies the permutation to the given Atom and returns the permuted atom.
      • permuteInverse

        public Atom permuteInverse(Atom key)
        Applies the inverse permutation to the given Atom and returns the inverse permuted atom.
      • toString

        public String toString(boolean useIdString)