public class ScopeAssignments
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.util.Set<net.ssehub.easy.varModel.confModel.IDecisionVariable> |
currentScopeSet |
private java.util.Map<net.ssehub.easy.varModel.model.IModelElement,java.util.Set<net.ssehub.easy.varModel.confModel.IDecisionVariable>> |
scopeAssignments |
| Constructor and Description |
|---|
ScopeAssignments()
Sole constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAssignedVariable(net.ssehub.easy.varModel.confModel.IDecisionVariable variable)
Method for registering a variable that was assigned.
|
void |
clearScopeAssignments()
Method for clearing all scope assignments.
|
void |
setCurrentScope(net.ssehub.easy.varModel.model.Constraint constraint)
Defines the current scope due to the parents of the given
constraint. |
void |
setCurrentScope(net.ssehub.easy.varModel.model.IModelElement currentScope)
Defines the current scope.
|
boolean |
wasAssignedInThisScope(net.ssehub.easy.varModel.confModel.IDecisionVariable variable)
Method for determining if variable was assigned in the specific scope.
|
private java.util.Map<net.ssehub.easy.varModel.model.IModelElement,java.util.Set<net.ssehub.easy.varModel.confModel.IDecisionVariable>> scopeAssignments
private transient java.util.Set<net.ssehub.easy.varModel.confModel.IDecisionVariable> currentScopeSet
public void addAssignedVariable(net.ssehub.easy.varModel.confModel.IDecisionVariable variable)
setCurrentScope(IModelElement) before.variable - Assigned variable.public boolean wasAssignedInThisScope(net.ssehub.easy.varModel.confModel.IDecisionVariable variable)
setCurrentScope(IModelElement) before.variable - Variable under question.public void clearScopeAssignments()
public void setCurrentScope(net.ssehub.easy.varModel.model.Constraint constraint)
constraint.constraint - defining the current scopepublic void setCurrentScope(net.ssehub.easy.varModel.model.IModelElement currentScope)
currentScope - the current scopeCopyright © 2009 - 2018 SSE. All Rights Reserved.