Class ChangeHistory.CSet
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<AbstractIvmlVariable,Value>
-
- net.ssehub.easy.instantiation.core.model.vilTypes.configuration.ChangeHistory.CSet
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.util.Map<AbstractIvmlVariable,Value>
- Enclosing class:
- ChangeHistory
private static class ChangeHistory.CSet extends java.util.HashMap<AbstractIvmlVariable,Value>
Defines the type of a change set.- Author:
- Holger Eichelberger
-
-
Field Summary
Fields Modifier and Type Field Description private intdirectChanges
-
Constructor Summary
Constructors Modifier Constructor Description privateCSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidaddAllDecisionVariables(java.util.Set<IDecisionVariable> result)Adds all original decision variables of allelementstoresult.private voidaddAllIvmlElements(java.util.Set<AbstractIvmlVariable> result)Adds allelementstoresult.private booleanhasChanges()Returns the number of direct changes in this change set (excluding indirectly commited ones).private voidnotifyChanged(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
-
-
-
-
Method Detail
-
addAllIvmlElements
private void addAllIvmlElements(java.util.Set<AbstractIvmlVariable> result)
Adds allelementstoresult.- 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 allelementstoresult.- 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 variablevalue- 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
-
-