Algernon Software

org.algernon.datatype
Class Activation

java.lang.Object
  extended byorg.jatha.dynatype.StandardLispValue
      extended byorg.algernon.datatype.Activation
All Implemented Interfaces:
Comparable, LispValue

public class Activation
extends StandardLispValue

This class represents an Activation in the AAM. It consists of a Rule Closure and its environment (the registers).


Field Summary
static int CODE
           
protected  Algernon f_algy
           
protected  LispValue f_ID
           
protected  RegisterSet f_registers
           
protected  LispValue m_activateBCclause
           
protected  LispValue m_activateFCclause
           
protected  BindingList m_bindings
           
protected  LispValue m_clause
           
protected  LispValue m_code
           
protected  LispValue m_conjID
           
protected  long m_index
           
protected  LispValue m_key
           
protected  Rule m_rule
           
static int SELECT
           
 
Fields inherited from class org.jatha.dynatype.StandardLispValue
f_lisp
 
Constructor Summary
Activation(Algernon algy, Processor processor, BindingList bindings, int direction, AlgernonKBSet kbSet, Rule rule, int codeType, LispValue conjunctionID, LispValue ID)
          Create a new AAM Activation.
 
Method Summary
 LispValue getActivateBCClause()
          Returns the value of ActivateBCClause.
 LispValue getActivateFCClause()
          Returns the value of ActivateFCClause.
 BindingList getBindings()
          Returns the value of Bindings.
 LispValue getClause()
          Returns the value of Clause.
 LispValue getCode()
          Returns the value of Code.
 LispValue getConjunctiveID()
          Returns the value of ConjunctiveID.
 LispValue getID()
          Returns the unique ID of this object.
 long getIndex()
          Returns the value of Index.
 LispValue getKey()
          Returns the value of Key.
 Rule getRule()
          Returns the value of Rule.
 void setActivateBCClause(LispValue newActivateBCClause)
          Sets the value of ActivateBCClause.
 void setActivateFCClause(LispValue newActivateFCClause)
          Sets the value of ActivateFCClause.
 void setBindings(BindingList newBindings)
          Sets the value of Bindings.
 void setClause(Clause newClause)
          Sets the value of Clause.
 void setCode(LispValue newCode)
          Sets the value of Code.
 void setConjunctiveID(LispValue newConjunctiveID)
          Sets the value of ConjunctiveID.
 void setIndex(int newIndex)
          Sets the value of Index.
 void setKey(LispValue newKey)
          Sets the value of Key.
 void setRule(Rule newRule)
          Sets the value of Rule.
 String toString()
           
 
Methods inherited from class org.jatha.dynatype.StandardLispValue
abs, acos, add, adjustSpecialCount, append, apply, apropos_print, asin, assoc, atan, atan2, atom, basic_atom, basic_bignump, basic_consp, basic_constantp, basic_floatp, basic_foreignp, basic_functionp, basic_integerp, basic_keywordp, basic_length, basic_listp, basic_macrop, basic_null, basic_numberp, basic_stringp, basic_symbolp, bignump, boundp, butlast, car, cdr, ceiling, characterp, clrhash, compareTo, concatenate, consp, constantp, contains, copy_list, copy, cos, cot, csc, degreesToRadians, divide, eighth, elt, elt, eq, eql, equal, equalNumeric, factorial, fboundp, fifth, first, floatp, floor, fourth, funcall, functionp, get_specialCount, gethash, gethash, getLisp, greaterThan, greaterThanOrEqual, hash_table_count, hash_table_rehash_size, hash_table_rehash_threshold, hash_table_size, hash_table_test, hashtablep, integerp, internal_getName, internal_prin1_as_cdr, internal_prin1, internal_princ_as_cdr, internal_princ, internal_print_as_cdr, internal_print, iterator, keywordp, last, length, lessThan, lessThanOrEqual, lisp_null, list, listp, max, member, min, multiply, nconc, negate, neql, ninth, nreverse, nstringCapitalize, nstringDowncase, nstringUpcase, numberp, pop, position, prin1, princ, print, push, radiansToDegrees, rassoc, reciprocal, remhash, remove, rest, reverse, rplaca, rplacd, sec, second, set_special, setf_gethash, setf_symbol_function, setf_symbol_plist, setf_symbol_value, setLisp, setPackage, setq, seventh, sin, sixth, specialP, sqrt, string, stringCapitalize, stringDowncase, stringEndsWith, stringEq, stringEqual, stringGreaterP, stringGreaterThan, stringGreaterThanOrEqual, stringLeftTrim, stringLeftTrim, stringLessP, stringLessThan, stringLessThanOrEqual, stringNeq, stringNotGreaterP, stringNotLessP, stringp, stringRightTrim, stringRightTrim, stringStartsWith, stringTrim, stringTrim, stringUpcase, subst, substring, substring, subtract, symbol_function, symbol_name, symbol_package, symbol_plist, symbol_value, symbolp, tan, tenth, third, toCollection, toJava, toJava, toString, toStringAsCdr_internal, toStringAsCdr, toStringShort, toStringShort, toStringSimple, type_of, typep, zerop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CODE

public static int CODE

SELECT

public static int SELECT

m_activateBCclause

protected LispValue m_activateBCclause

m_activateFCclause

protected LispValue m_activateFCclause

m_bindings

protected BindingList m_bindings

m_clause

protected LispValue m_clause

m_code

protected LispValue m_code

m_conjID

protected LispValue m_conjID

m_index

protected long m_index

m_key

protected LispValue m_key

m_rule

protected Rule m_rule

f_registers

protected RegisterSet f_registers

f_ID

protected LispValue f_ID

f_algy

protected Algernon f_algy
Constructor Detail

Activation

public Activation(Algernon algy,
                  Processor processor,
                  BindingList bindings,
                  int direction,
                  AlgernonKBSet kbSet,
                  Rule rule,
                  int codeType,
                  LispValue conjunctionID,
                  LispValue ID)
Create a new AAM Activation.

Method Detail

toString

public String toString()

getID

public LispValue getID()
Returns the unique ID of this object.


getActivateBCClause

public LispValue getActivateBCClause()
Returns the value of ActivateBCClause.


setActivateBCClause

public void setActivateBCClause(LispValue newActivateBCClause)
Sets the value of ActivateBCClause.


getActivateFCClause

public LispValue getActivateFCClause()
Returns the value of ActivateFCClause.


setActivateFCClause

public void setActivateFCClause(LispValue newActivateFCClause)
Sets the value of ActivateFCClause.


getBindings

public BindingList getBindings()
Returns the value of Bindings.


setBindings

public void setBindings(BindingList newBindings)
Sets the value of Bindings.


getClause

public LispValue getClause()
Returns the value of Clause.


setClause

public void setClause(Clause newClause)
Sets the value of Clause.


getCode

public LispValue getCode()
Returns the value of Code.


setCode

public void setCode(LispValue newCode)
Sets the value of Code.


getIndex

public long getIndex()
Returns the value of Index.


getConjunctiveID

public LispValue getConjunctiveID()
Returns the value of ConjunctiveID.


setConjunctiveID

public void setConjunctiveID(LispValue newConjunctiveID)
Sets the value of ConjunctiveID.


setIndex

public void setIndex(int newIndex)
Sets the value of Index.


getKey

public LispValue getKey()
Returns the value of Key.


setKey

public void setKey(LispValue newKey)
Sets the value of Key.


getRule

public Rule getRule()
Returns the value of Rule.


setRule

public void setRule(Rule newRule)
Sets the value of Rule.


Algernon Software