lij.runtime
Class ArgumentAccessor
java.lang.Object
lij.runtime.ArgumentAccessor
- All Implemented Interfaces:
- Accessor
public class ArgumentAccessor
- extends java.lang.Object
- implements Accessor
For passing arguments to constraint methods, and allowing them to return
values (i.e. update values in the symbol table).
- Author:
- Nikolaos Chatzinikolaou
Method Summary |
java.io.Serializable |
getValue()
Accessor. |
void |
setValue(java.io.Serializable _value)
Accessor. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
argument
private Argument argument
symbolTable
private SymbolTable symbolTable
ArgumentAccessor
public ArgumentAccessor(Argument _argument,
SymbolTable _symbolTable)
- Constructor.
- Parameters:
_argument
- The Argument object which will be accessed through this
ArgumentAccessor._symbolTable
- A reference to the SymbolTable in the currently
executing ClauseInstance.
setValue
public void setValue(java.io.Serializable _value)
throws InterpreterException
- Description copied from interface:
Accessor
- Accessor.
- Specified by:
setValue
in interface Accessor
- Parameters:
_value
- The new value of the accessor.
- Throws:
InterpreterException
getValue
public java.io.Serializable getValue()
- Description copied from interface:
Accessor
- Accessor.
- Specified by:
getValue
in interface Accessor
- Returns:
- The value contained in the accessor.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object