Class DeficiencyMap


  • public final class DeficiencyMap
    extends Object
    Describes a map between Deficiency's of one type to another one. Created: Thu Apr 21 14:47:33 2005
    Version:
    1.0
    Author:
    Ernst Reissner
    • Method Detail

      • checkInvImg01

        void checkInvImg01()
      • identity

        public static DeficiencyMap identity​(SClass sourceTarget)
        Returns the identity map with the given source and target with full domain and range.
        Parameters:
        sourceTarget - an SClass which is both source and target and idDom comprises all its deficiencies.
        Returns:
        a DeficiencyMap which is the identity on the set of deficiencies of sourceTarget.
      • getInverse

        public DeficiencyMap getInverse()
        Returns the inverse of this map provided it exists.
        Returns:
        a DeficiencyMap which is the inverse of this one.
        Throws:
        UnsupportedOperationException - if this map is not invertible.
      • compose

        public DeficiencyMap compose​(DeficiencyMap second)
        Returns the composition of this map and second (in this order).
        Parameters:
        second - another DeficiencyMap.
        Returns:
        the composition of this DeficiencyMap and second.
        Throws:
        IllegalArgumentException - if this.target != second.source.
      • map

        public Deficiency map​(Deficiency def)
        Performs the mapping.
        Parameters:
        def - the Deficiency to be mapped.
        Returns:
        the image of def with respect to this map. If and only if def is outside the domain, returns null.
      • getInverseImage

        Set<Deficiency> getInverseImage​(Deficiency def)
        Returns the inverse image of the given deficiency with respect to this map.
        Parameters:
        def - the Deficiency for which the inverse image is to be determined.
        Returns:
        the inverse image of def with respect to this map. This may well be an empty set.
      • getDomain

        Set<Deficiency> getDomain()
        Returns the domain of this map.
        Returns:
        the domain of this map.
      • getRange

        Set<Deficiency> getRange()
        Returns the range of this map.
        Returns:
        the range of this map.
      • getSource

        public SClass getSource()
        Returns the source of this map.
        See Also:
        source
      • getTarget

        public SClass getTarget()
        Returns the target of this map.
        See Also:
        target
      • isIsotone

        public boolean isIsotone()
        Returns whether this map is isotone.
        Returns:
        whether this map is isotone.
      • isTwistIsotone

        public boolean isTwistIsotone()
        Returns whether this map is twist-isotone.
        Returns:
        whether this map is twist-isotone.
      • cov

        public Set<Deficiency> cov​(Set<Deficiency> defs)
        Returns the image of defs under this map.
        Parameters:
        defs - a set of Deficiencys to be mapped.
        Returns:
        the image of defs under this map.
      • cont

        public Set<Deficiency> cont​(Set<Deficiency> defs)
        Returns the inverse image of defs under this map.
        Parameters:
        defs - a set of Deficiencys to be "reverse mapped'.
        Returns:
        the inverse image of defs under this map.