|
Algernon Software | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 Register
getValue
in class GeneralRegister
BindingSet
public LispValue setValue(LispValue newValue) throws AlgernonDataException
setValue
in interface Register
setValue
in class GeneralRegister
AlgernonDataException
public LispValue getEntry(int index)
getEntry
in interface Register
getEntry
in class GeneralRegister
public LispValue pop()
pop
in interface Register
pop
in class GeneralRegister
public LispValue push(LispValue newValue)
push
in interface Register
push
in class GeneralRegister
public LispValue append(LispValue newValue)
append
in interface Register
append
in class GeneralRegister
public long size()
size
in interface Register
size
in class GeneralRegister
public void clear()
clear
in interface Register
clear
in class GeneralRegister
public String toString()
toString
in class GeneralRegister
|
Algernon Software | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |