Class ChangeHistory.CSet

    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.util.AbstractMap

        java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>
      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int directChanges  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private CSet()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void addAllDecisionVariables​(java.util.Set<IDecisionVariable> result)
      Adds all original decision variables of all elements to result.
      private void addAllIvmlElements​(java.util.Set<AbstractIvmlVariable> result)
      Adds all elements to result.
      private boolean hasChanges()
      Returns the number of direct changes in this change set (excluding indirectly commited ones).
      private void notifyChanged​(AbstractIvmlVariable variable, Value value)
      Notifies this change set about a direct change within the scope of this change set.
      • Methods inherited from class java.util.HashMap

        clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
      • Methods inherited from class java.util.AbstractMap

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Map

        equals, hashCode
    • Field Detail

      • directChanges

        private int directChanges
    • Constructor Detail

      • CSet

        private CSet()
    • Method Detail

      • addAllIvmlElements

        private void addAllIvmlElements​(java.util.Set<AbstractIvmlVariable> result)
        Adds all elements to result.
        Parameters:
        result - the set to be changed as a side effect
      • addAllDecisionVariables

        private void addAllDecisionVariables​(java.util.Set<IDecisionVariable> result)
        Adds all original decision variables of all elements to result.
        Parameters:
        result - the set to be changed as a side effect
      • notifyChanged

        private void notifyChanged​(AbstractIvmlVariable variable,
                                   Value value)
        Notifies this change set about a direct change within the scope of this change set.
        Parameters:
        variable - the changed variable
        value - the actual value
      • hasChanges

        private boolean hasChanges()
        Returns the number of direct changes in this change set (excluding indirectly commited ones).
        Returns:
        the number of changes