public class VariableMap extends Object
| Constructor and Description |
|---|
VariableMap(Task task)
Creates a fresh variable container for the given task.F
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Variable variable)
Add the given variable to this variable container.
|
Variable |
getVar(VariableRole role)
Returns the variable, that is currently serving the given role.
|
boolean |
isRoleTaken(VariableRole role)
Returns true if a variable has already been assigned to the given role.
|
public VariableMap(Task task)
task - The task a variable container shall be created for.public Variable getVar(VariableRole role)
role - The role the searched variable shall have.public void add(Variable variable)
variable - The variable, that shall be added to the task container.public boolean isRoleTaken(VariableRole role)
role - The role, that shall be checked.Copyright © 2017–2019 SoftVision Development GmbH, Fulda, Germany. All rights reserved.