|
Algernon Software | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jatha.dynatype.StandardLispValue
org.algernon.aam.Opcode
This class represents an Opcode in the AAM. Each opcode is an instance of this class. The OpcodeSet contains an instance of each Opcode. A numberOfArguments of 0 means any number is acceptable.
Field Summary | |
protected Algernon |
f_algy
|
protected String |
m_name
|
protected int |
m_numberOfArguments
|
Fields inherited from class org.jatha.dynatype.StandardLispValue |
f_lisp |
Constructor Summary | |
Opcode(Algernon algy,
String name,
int numberOfArguments)
Create a new AAM Opcode. |
Method Summary | |
AlgernonClass |
argumentToClass(AlgernonKB kb,
LispValue classVal)
Utility method to convert an argument to an AlgernonClass. |
AlgernonClass |
argumentToClass(AlgernonKBSet kbSet,
LispValue classVal)
Utility method to convert an argument to an AlgernonClass. |
AlgernonFacet |
argumentToFacet(AlgernonKB kb,
LispValue facetVal)
Utility method to convert an argument to an AlgernonFacet. |
AlgernonFacet |
argumentToFacet(AlgernonKBSet kb,
LispValue facetVal)
Utility method to convert an argument to an AlgernonFacet. |
AlgernonFrame |
argumentToFrame(AlgernonKB kb,
LispValue frameVal)
Utility method to convert an argument to an AlgernonFrame. |
AlgernonFrame |
argumentToFrame(AlgernonKBSet kb,
LispValue frameVal)
Utility method to convert an argument to an AlgernonFrame. |
AlgernonInstance |
argumentToInstance(AlgernonKB kb,
AlgernonClass aClass,
LispValue instanceVal)
Utility method to convert an argument to an AlgernonInstance. |
AlgernonInstance |
argumentToInstance(AlgernonKB kb,
LispValue instanceVal)
Utility method to convert an argument to an AlgernonInstance. |
AlgernonInstance |
argumentToInstance(AlgernonKBSet kb,
LispValue instanceVal)
Utility method to convert an argument to an AlgernonInstance. |
AlgernonRelation |
argumentToRelation(AlgernonKB kb,
LispValue relationVal)
Utility method to convert an argument to an AlgernonClass. |
AlgernonRelation |
argumentToRelation(AlgernonKBSet kb,
LispValue relationVal)
Utility method to convert an argument to an AlgernonClass. |
void |
execute(Processor processor,
AlgernonKBSet kbSet)
Executes this opcode, using information in the given processor. |
String |
getName()
Returns the value of Name. |
int |
getNumberOfArguments()
Returns the value of NumberOfArguments. |
void |
setName(String newName)
Sets the value of Name. |
void |
setNumberOfArguments(int newNumberOfArguments)
Sets the value of NumberOfArguments. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected int m_numberOfArguments
protected String m_name
protected Algernon f_algy
Constructor Detail |
public Opcode(Algernon algy, String name, int numberOfArguments)
Method Detail |
public String toString()
public void execute(Processor processor, AlgernonKBSet kbSet) throws AlgernonException
AlgernonException
public String getName()
public void setName(String newName)
public int getNumberOfArguments()
public void setNumberOfArguments(int newNumberOfArguments)
public AlgernonClass argumentToClass(AlgernonKB kb, LispValue classVal) throws AlgernonDataException
kb
- The KB to look in for the class.classVal
- the thing to be converted to an AlgernonClass.
AlgernonDataException
public AlgernonInstance argumentToInstance(AlgernonKB kb, AlgernonClass aClass, LispValue instanceVal) throws AlgernonDataException
kb
- The KB to look in for the class.instanceVal
- the thing to be converted to an AlgernonInstance.
AlgernonDataException
public AlgernonInstance argumentToInstance(AlgernonKB kb, LispValue instanceVal) throws AlgernonDataException
kb
- The KB to look in for the class.instanceVal
- the thing to be converted to an AlgernonInstance.
AlgernonDataException
public AlgernonFacet argumentToFacet(AlgernonKB kb, LispValue facetVal) throws AlgernonDataException
kb
- The KBs to look in for the class.facetVal
- the thing to be converted to an AlgernonFacet.
AlgernonDataException
public AlgernonRelation argumentToRelation(AlgernonKB kb, LispValue relationVal) throws AlgernonDataException
kb
- The KBs to look in for the class.relationVal
- the thing to be converted to an AlgernonClass.
AlgernonDataException
public AlgernonFrame argumentToFrame(AlgernonKB kb, LispValue frameVal) throws AlgernonDataException
kb
- The KBs to look in for the class.frameVal
- the thing to be converted to an AlgernonFrame.
AlgernonDataException
public AlgernonClass argumentToClass(AlgernonKBSet kbSet, LispValue classVal) throws AlgernonDataException
kbSet
- The KBs to look in for the class.classVal
- the thing to be converted to an AlgernonClass.
AlgernonDataException
public AlgernonInstance argumentToInstance(AlgernonKBSet kb, LispValue instanceVal) throws AlgernonDataException
kb
- The KBs to look in for the class.instanceVal
- the thing to be converted to an AlgernonInstance.
AlgernonDataException
public AlgernonFacet argumentToFacet(AlgernonKBSet kb, LispValue facetVal) throws AlgernonDataException
kb
- The KBs to look in for the class.facetVal
- the thing to be converted to an AlgernonFacet.
AlgernonDataException
public AlgernonRelation argumentToRelation(AlgernonKBSet kb, LispValue relationVal) throws AlgernonDataException
kb
- The KBs to look in for the class.relationVal
- the thing to be converted to an AlgernonClass.
AlgernonDataException
public AlgernonFrame argumentToFrame(AlgernonKBSet kb, LispValue frameVal) throws AlgernonDataException
kb
- The KBs to look in for the class.frameVal
- the thing to be converted to an AlgernonFrame.
AlgernonDataException
|
Algernon Software | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |