public class Bindings
extends java.lang.Object
Red (rowland) |
Red (rowland) |
Modifier and Type | Field and Description |
---|---|
(package private) java.util.LinkedHashSet |
_keys |
(package private) java.util.Hashtable |
_VarLabel2Unit |
Constructor and Description |
---|
Bindings()
Construct Bindings with no members.
|
Bindings(java.util.Vector nodes)
Create bindings for a set of nodes in a CompositeEntity.
|
Modifier and Type | Method and Description |
---|---|
boolean |
bindingExists(java.lang.String vLabel)
Return true if the binding exists.
|
Unit |
get(java.lang.String vLabel)
Get the value for a variable.
|
java.lang.String |
humanReadableForm()
A human readable form (more or less) of the bindings.
|
void |
put(java.lang.String varLabel,
Unit U)
Create a binding for a variable and Unit.
|
java.lang.String[] |
variableLabels()
Create an array of Strings that contains all of the variables.
|
public Bindings()
public Bindings(java.util.Vector nodes)
nodes
- The set of nodes(ComponentEntities).public boolean bindingExists(java.lang.String vLabel)
vLabel
- A String that represents the variable.public Unit get(java.lang.String vLabel)
vLabel
- A String that represents the variable.public java.lang.String humanReadableForm()
public void put(java.lang.String varLabel, Unit U)
varLabel
- A String that represents the variable.U
- The Unit.public java.lang.String[] variableLabels()