|
Algernon Software | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.algernon.aam.register.GeneralRegister
org.algernon.aam.register.BindingsRegister
This class represents a register that holds BindingSets in the AAM. Results are contained in binding sets, and the mergeBindingSets operation will merge two sets into one. The final result of an operation stream is always a BindingSet. The contents of this register is always a list of BindingSets. The list may be empty.
| Field Summary | |
protected LispValue |
m_bindingSets
|
| Fields inherited from class org.algernon.aam.register.GeneralRegister |
f_algy, f_lisp, f_processor, m_name, m_processor, m_registerSet, m_value |
| Constructor Summary | |
BindingsRegister(Processor processor,
String name,
RegisterSet registerSet)
Creates a new AAM register that holds a binding set. |
|
| Method Summary | |
LispValue |
append(LispValue newValue)
Appends the given value onto the end of the register. |
void |
clear()
Initializes the register contents to NIL. |
LispValue |
getEntry(int index)
Return the nth BindingSet in this register, where the topmost item is entry number zero. |
LispValue |
getValue()
Return the value of the given register. |
LispValue |
pop()
Pops the register and returns the popped entry. |
LispValue |
push(LispValue newValue)
Pushes the given BindingSet onto the register. |
LispValue |
setValue(LispValue newValue)
Sets the value of the given register. |
long |
size()
Returns the number of values in this register. |
String |
toString()
Displays the register name and its contents. |
| Methods inherited from class org.algernon.aam.register.GeneralRegister |
getName, getRegisterSet, setName, setRegisterSet |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.algernon.aam.register.Register |
getName, getRegisterSet, setName, setRegisterSet |
| Field Detail |
protected LispValue m_bindingSets
| Constructor Detail |
public BindingsRegister(Processor processor,
String name,
RegisterSet registerSet)
BindingSet,
BindingList| Method Detail |
public LispValue getValue()
getValue in interface RegistergetValue in class GeneralRegisterBindingSet
public LispValue setValue(LispValue newValue)
throws AlgernonDataException
setValue in interface RegistersetValue in class GeneralRegisterAlgernonDataExceptionpublic LispValue getEntry(int index)
getEntry in interface RegistergetEntry in class GeneralRegisterpublic LispValue pop()
pop in interface Registerpop in class GeneralRegisterpublic LispValue push(LispValue newValue)
push in interface Registerpush in class GeneralRegisterpublic LispValue append(LispValue newValue)
append in interface Registerappend in class GeneralRegisterpublic long size()
size in interface Registersize in class GeneralRegisterpublic void clear()
clear in interface Registerclear in class GeneralRegisterpublic String toString()
toString in class GeneralRegister
|
Algernon Software | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||