Class SInstance


  • public final class SInstance
    extends Object
    Represents the instance of an SClass. Created: Thu Apr 14 22:51:12 2005
    Version:
    1.0
    Author:
    Ernst Reissner
    • Field Detail

      • type

        private final Type type
        The SClass of this instance.
      • name

        private final String name
    • Method Detail

      • setFormula

        public void setFormula​(Formula form)
      • getType

        public Type getType()
      • getFormula

        public Formula getFormula()
      • remove

        SInstance remove​(Deficiency def)
        Returns the SInstance arising from this one by removing def in a way that means that def does not occur. This means that all deficiencies above def are removed as well. CAUTION: This may return null.
        Parameters:
        def - a Deficiency minimal within the type of this effect. **** is this unique or not? ****
        Returns:
        the SInstance arising from this one by assuming that def does not occur for this effect. Note that if def is minimal within the type of this effect, the resulting type is empty. Since this is not allowed for SInstances, this method must return null.
      • add

        SInstance add​(Deficiency def)
        Returns the SInstance arising from this one by removing def in a way that means that def occurs.
        Parameters:
        def - a Deficiency minimal within the type of this effect. **** is this unique or not? ****
        Returns:
        the SInstance arising from this one by assuming that def does occurs for this effect.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object