|
Algernon Software | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.algernon.aam.register.RegisterSet
This class represents a RegisterSet in the AAM. It contains the registers, memory and code.
Field Summary | |
LispString |
ACTIONS
Stack or queue of paths to be followed. |
LispString |
ACTIVATE_BC
Activation clause for forward chaining rules. |
LispString |
ACTIVATE_FC
Activation clause for backard chaining rules. |
LispString |
BINDINGS
Stack of binding lists. |
LispString |
CLAUSE
The clause currently being executed. |
LispString |
CODE
Code register (like a Program Counter). |
LispString |
CONTEXT
Stack of execution contexts. |
private Jatha |
f_lisp
|
protected Processor |
f_processor
|
LispString |
ID
The ID of the activation being processed. |
LispString |
INDEX
Number of the clause being processed. |
LispString |
KEY
Key clause of backward chaining rules. |
protected HashMap |
m_registerMap
|
Register |
R_ACTIONS
Stack or queue of paths to be followed. |
Register |
R_ACTIVATE_BC
Activation clause for forward chaining rules. |
Register |
R_ACTIVATE_FC
Activation clause for backard chaining rules. |
Register |
R_BINDINGS
Stack of binding lists. |
Register |
R_CLAUSE
The clause currently being executed. |
Register |
R_CODE
Code register (like a Program Counter). |
Register |
R_CONTEXT
Stack of execution contexts. |
Register |
R_ID
The ID of the activation being processed. |
Register |
R_INDEX
Number of the clause being processed. |
Register |
R_KEY
Key clause of backward chaining rules. |
Register |
R_RESULTS
Binding lists stored for return to user. |
Register |
R_RULE
The rule being processed. |
LispString |
RESULTS
Binding lists stored for return to user. |
LispString |
RULE
The rule being processed. |
Constructor Summary | |
RegisterSet(Processor processor)
Create a new AAM RegisterSet. |
Method Summary | |
LispValue |
appendRegisterValue(LispValue registerName,
LispValue newValue)
Appends the given value onto the end of the register. |
Register |
getRegister(LispValue name)
Returns the Register with the given name. |
LispValue |
getRegisterEntry(LispValue registerName,
int index)
Return the nth entry in the given register, where the topmost item is entry number zero. |
long |
getRegisterSize(LispValue registerName)
Return the size of (number of entries in) the given register. |
LispValue |
getRegisterValue(LispValue registerName)
Return the value of the given register. |
void |
initializeRegisters()
Initializes the register contents to NIL. |
LispValue |
popRegisterValue(LispValue registerName)
Pops the register and returns the popped entry. |
LispValue |
pushRegisterValue(LispValue registerName,
LispValue newValue)
Pushes the given value onto the register. |
LispValue |
setRegisterValue(LispValue registerName,
LispValue newValue)
Sets the value of the given register. |
void |
showRegisters()
Displays all of the registers. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private Jatha f_lisp
public LispString ACTIONS
public LispString ACTIVATE_BC
public LispString ACTIVATE_FC
public LispString BINDINGS
public LispString CLAUSE
public LispString CODE
public LispString CONTEXT
public LispString ID
public LispString INDEX
public LispString KEY
public LispString RESULTS
public LispString RULE
public Register R_ACTIONS
public Register R_ACTIVATE_BC
public Register R_ACTIVATE_FC
public Register R_BINDINGS
public Register R_CLAUSE
public Register R_CODE
public Register R_CONTEXT
public Register R_ID
public Register R_INDEX
public Register R_KEY
public Register R_RESULTS
public Register R_RULE
protected HashMap m_registerMap
protected Processor f_processor
Constructor Detail |
public RegisterSet(Processor processor)
Method Detail |
public Register getRegister(LispValue name)
public LispValue getRegisterValue(LispValue registerName)
public LispValue setRegisterValue(LispValue registerName, LispValue newValue) throws AlgernonDataException
AlgernonDataException
public LispValue getRegisterEntry(LispValue registerName, int index)
public LispValue popRegisterValue(LispValue registerName)
public LispValue pushRegisterValue(LispValue registerName, LispValue newValue)
public LispValue appendRegisterValue(LispValue registerName, LispValue newValue)
public long getRegisterSize(LispValue registerName)
public void initializeRegisters()
public void showRegisters()
|
Algernon Software | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |