|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectptolemy.data.unit.Bindings
Represents a set of bindings. Each binding is a (variable, Unit) pair where variable is a String. If the value of Unit is null, then the binding for the variable exists but its value is null. Since null is an allowable value the Hashtable class is not adequate.
| Red (rowland) |
| Red (rowland) |
| Constructor Summary | |
Bindings()
Construct Bindings with no members. |
|
Bindings(java.util.Vector nodes)
Create bindings for a set of nodes in a CompositeEntity. |
|
| Method Summary | |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Bindings()
public Bindings(java.util.Vector nodes)
nodes - The set of nodes(ComponentEntities).| Method Detail |
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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||