|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.irs.jam.Binding
Represents a plan's variable bindings
Field Summary | |
protected BindingValue[] |
_bvalues
|
protected boolean |
_newWMBinding
|
protected int |
_size
|
protected SymbolTable |
_symbolTable
|
Constructor Summary | |
Binding(Binding b)
Copy constructor |
|
Binding(SymbolTable symbolTable)
Constructor based on an externally-supplied symbol table |
Method Summary | |
boolean |
checkNewWMBinding(boolean newWM)
Check, and possibly alter the flag indicating a reference to a newly changed world model entry |
void |
clearNewWMBinding()
Indicate that there are no references to newly changed world model entries |
void |
copy(Binding b)
Assignment operator |
void |
format(java.io.PrintStream s)
Print out so that it can be in-line with other output |
BindingValue[] |
getBindingValues()
|
SymbolTable |
getSymbolTable()
|
Value |
getValue(Expression var)
Get the variable's value by looking up the internal ID |
Value |
getValue(int varID)
Get the variable's value by using the internal ID |
boolean |
isEmpty()
Check to see if there are no variables |
boolean |
isLocalBinding(Expression var)
See if binding is based solely on local values |
boolean |
isLocalBinding(int varID)
See if binding is based solely on local values |
boolean |
isNewWMBinding()
See if there are any references based upon a newly changed world model entry |
void |
linkVariables(Expression var,
Expression extVariable,
Binding extBinding)
Tie this binding with an external variable binding |
void |
print(java.io.PrintStream s)
Print out without worrying about being in-line with other output |
void |
setValue(Expression var,
Value val)
Set the internal value of the variable |
void |
setValue(int varID,
Value val)
Set the internal value of the variable |
void |
unbindVariable(Expression expression)
Restore variable in the expression to an undefined state |
void |
unbindVariables(ExpList expressions)
Restore variables in the expression list to an undefined state |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int _size
protected boolean _newWMBinding
protected SymbolTable _symbolTable
protected BindingValue[] _bvalues
Constructor Detail |
public Binding(SymbolTable symbolTable)
public Binding(Binding b)
Method Detail |
public void copy(Binding b)
public void unbindVariable(Expression expression)
public void unbindVariables(ExpList expressions)
public void linkVariables(Expression var, Expression extVariable, Binding extBinding)
public boolean isLocalBinding(Expression var)
public boolean isLocalBinding(int varID)
public void setValue(Expression var, Value val)
public void setValue(int varID, Value val)
public Value getValue(Expression var)
public Value getValue(int varID)
public boolean isNewWMBinding()
public boolean checkNewWMBinding(boolean newWM)
public void clearNewWMBinding()
public boolean isEmpty()
public SymbolTable getSymbolTable()
public BindingValue[] getBindingValues()
public void print(java.io.PrintStream s)
public void format(java.io.PrintStream s)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |