Algernon Software

Uses of Class
org.algernon.exception.AlgernonException

Packages that use AlgernonException
org.algernon   
org.algernon.aam   
org.algernon.aam.compile   
org.algernon.aam.opcode   
org.algernon.exception   
org.algernon.kb   
org.algernon.kb.okbc.protege   
org.algernon.test   
 

Uses of AlgernonException in org.algernon
 

Methods in org.algernon that throw AlgernonException
 LispValue Algernon.compile(Path path, AlgernonKBSet kbSet, int compileMode, ErrorSet errorSet)
          Compiles a path (which may be a rule declaration, a query, an assert or part of a rule) and returns the AAM opcodes for the path.
 LispValue Algernon.compile(String path, AlgernonKBSet kbSet, int compileMode, ErrorSet errorSet)
          Compiles a path (which may be a rule declaration, a query, an assert or part of a rule) and returns the AAM opcodes for the path.
 LispValue Algernon.process(LispValue code, AlgernonKBSet kbset, ErrorSet errors)
          Executes a set of AAM opcodes.
 boolean Algernon.relationIsFull(AlgernonFrame frame, AlgernonRelation relation)
          Returns true if the frame/relation combination is full - that is, the number of values stored in the slot is equal to the slot's maximum cardinality.
 

Constructors in org.algernon that throw AlgernonException
Algernon()
           
Algernon(AlgernonKB kb)
          Create a new instance of Algernon.
Algernon(AlgernonKBSet kbs)
          Create a new instance of Algernon.
 

Uses of AlgernonException in org.algernon.aam
 

Subclasses of AlgernonException in org.algernon.aam
 class HaltException
          This exception is thrown when the processor executes a HALT opcode.
 

Methods in org.algernon.aam that throw AlgernonException
 LispValue Processor.process(LispValue code, AlgernonKB kb, ErrorSet errors)
          Process the given code.
 LispValue Processor.process(LispValue code, AlgernonKBSet kbSet, BindingSet bindings, Rule rule, Process parent, ErrorSet errors)
          Process the given code.
 boolean Processor.relationIsFull(AlgernonFrame frame, AlgernonRelation relation)
          Returns true if the frame/relation combination is full - that is, the number of values stored in the slot is equal to the slot's maximum cardinality.
 void Opcode.execute(Processor processor, AlgernonKBSet kbSet)
          Executes this opcode, using information in the given processor.
 

Uses of AlgernonException in org.algernon.aam.compile
 

Methods in org.algernon.aam.compile that throw AlgernonException
 LispValue AlgernonCompiler.compile(Path path, AlgernonKBSet kbSet, int compileMode, BindingList bindings, Map argumentTypes, Rule rule, AlgernonCompilerState compileState, ErrorSet compileErrors)
          Returns a list of AAM machine code to be executed.
protected  LispValue AlgernonCompiler.compilePath(Path path, AlgernonKBSet kbSet, int index, int compileMode, BindingList bindings, Map argumentTypes, Rule rule, AlgernonCompilerState compileState, ErrorSet compileErrors)
          compilePath compiles an Algernon path into abstract machine code.
protected  LispValue AlgernonCompiler.compilePathNoReturn(Path path, AlgernonKBSet kbSet, int index, int compileMode, BindingList bindings, Map argumentTypes, Rule rule, AlgernonCompilerState compileState, ErrorSet compileErrors)
          compilePathAux is an internal routine that compiles a path.
protected  LispValue AlgernonCompiler.compilePathAux(Path path, AlgernonKBSet kbSet, int index, int compileMode, BindingList bindings, Map argumentTypes, Rule rule, AlgernonCompilerState compileState, LispValue code, ErrorSet compileErrors)
          compilePathAux is an internal routine that compiles a path.
protected  LispValue AlgernonCompiler.compileClause(Clause clause, AlgernonKBSet kbSet, int index, int compileMode, BindingList bindings, Map argumentTypes, Rule rule, AlgernonCompilerState compileState, LispValue code, ErrorSet compileErrors)
          compiles one clause
protected  LispValue AlgernonCompiler.compileSubroutine(LispValue variable, Path path, AlgernonKBSet kbSet, int compileMode, BindingList bindings, Map argumentTypes, Rule rule, AlgernonCompilerState compileState, ErrorSet compileErrors)
          compiles a subroutine.
protected  LispValue AlgernonCompiler.compileMacro(Clause clause, AlgernonKBSet kbSet, int index, int compileMode, BindingList bindings, Map argumentTypes, Rule rule, AlgernonCompilerState compileState, LispValue code, ErrorSet compileErrors)
           
protected  LispValue AlgernonCompiler.compileOpAllPaths(Clause clause, AlgernonKBSet kbSet, int compileMode, BindingList bindings, Map argumentTypes, Rule rule, AlgernonCompilerState compileState, LispValue code, ErrorSet compileErrors)
           
protected  LispValue AlgernonCompiler.compileOpAny(Clause clause, AlgernonKBSet kbSet, int compileMode, BindingList bindings, Map argumentTypes, Rule rule, AlgernonCompilerState compileState, LispValue code, ErrorSet compileErrors)
           
protected  LispValue AlgernonCompiler.compileOpAsk(Clause clause, AlgernonKBSet kbSet, int compileMode, BindingList bindings, Map argumentTypes, Rule rule, AlgernonCompilerState compileState, LispValue code, ErrorSet compileErrors)
           
protected  LispValue AlgernonCompiler.compileOpAddClass(Clause clause, AlgernonKBSet kbSet, int compileMode, BindingList bindings, Map argumentTypes, Rule rule, AlgernonCompilerState compileState, LispValue code, ErrorSet compileErrors)
          create a new frame and assert the path for that variable.
protected  LispValue AlgernonCompiler.compileOpCount(Clause clause, AlgernonKBSet kbSet, int compileMode, BindingList bindings, Map argumentTypes, Rule rule, AlgernonCompilerState compileState, LispValue code, ErrorSet compileErrors)
          This compiles the :COUNT macro.
protected  LispValue AlgernonCompiler.compileOpDelete(Clause clause, AlgernonKBSet kbSet, int compileMode, BindingList bindings, Map argumentTypes, Rule rule, AlgernonCompilerState compileState, LispValue code, ErrorSet compileErrors)
           
protected  LispValue AlgernonCompiler.compileOpFail(Clause clause, AlgernonKBSet kbSet, int compileMode, BindingList bindings, Map argumentTypes, Rule rule, AlgernonCompilerState compileState, LispValue code, ErrorSet compileErrors)
          This compiles the :FAIL and :UNP macros (which are synonyms of each other).
protected  LispValue AlgernonCompiler.compileOpFor(Clause clause, AlgernonKBSet kbSet, int compileMode, BindingList bindings, Map argumentTypes, Rule rule, AlgernonCompilerState compileState, LispValue code, ErrorSet compileErrors)
          This compiles the :FOR macro.
protected  LispValue AlgernonCompiler.compileOpLimit(Clause clause, AlgernonKBSet kbSet, int compileMode, BindingList bindings, Map argumentTypes, Rule rule, AlgernonCompilerState compileState, LispValue code, ErrorSet compileErrors)
          This compiles the :LIMIT macro.
protected  LispValue AlgernonCompiler.compileOpForcClass(Clause clause, AlgernonKBSet kbSet, int compileMode, BindingList bindings, Map argumentTypes, Rule rule, AlgernonCompilerState compileState, LispValue code, ErrorSet compileErrors)
           
protected  LispValue AlgernonCompiler.compileOpForcInstance(Clause clause, AlgernonKBSet kbSet, int compileMode, BindingList bindings, Map argumentTypes, Rule rule, AlgernonCompilerState compileState, LispValue code, ErrorSet compileErrors)
           
protected  LispValue AlgernonCompiler.compileOpAddInstance(Clause clause, AlgernonKBSet kbSet, int compileMode, BindingList bindings, Map argumentTypes, Rule rule, AlgernonCompilerState compileState, LispValue code, ErrorSet compileErrors)
           
protected  LispValue AlgernonCompiler.compileOpOr(Clause clause, AlgernonKBSet kbSet, int compileMode, BindingList bindings, Map argumentTypes, Rule rule, AlgernonCompilerState compileState, LispValue code, ErrorSet compileErrors)
           
protected  LispValue AlgernonCompiler.compileOpTheClass(Clause clause, AlgernonKBSet kbSet, int compileMode, BindingList bindings, Map argumentTypes, Rule rule, AlgernonCompilerState compileState, LispValue code, ErrorSet compileErrors)
           
protected  LispValue AlgernonCompiler.compileOpTheInstance(Clause clause, AlgernonKBSet kbSet, int compileMode, BindingList bindings, Map argumentTypes, Rule rule, AlgernonCompilerState compileState, LispValue code, ErrorSet compileErrors)
           
 Path AlgernonCompiler.preprocessPath(Path path)
          Preprocesses a path
 Clause AlgernonCompiler.preprocessClause(Clause clause)
          Preprocesses a clause.
 

Uses of AlgernonException in org.algernon.aam.opcode
 

Methods in org.algernon.aam.opcode that throw AlgernonException
 void Verify.execute(Processor processor, AlgernonKBSet kbSet)
          Executes the VERIFY opcode.
 void TestUnique.execute(Processor processor, AlgernonKBSet kbSet)
          This opcode is like TestSucceed except that it only aborts the computation if there are multiple bindings for the given variable.
 void TestSucceed.execute(Processor processor, AlgernonKBSet kbSet)
          Executes the TEST-SUCCEED opcode.
 void TestKnown.execute(Processor processor, AlgernonKBSet kbSet)
          Executes the :KNOWN opcode.
 void Superclass.execute(Processor processor, AlgernonKBSet kbSet)
          Executes the Superclass opcode, which collects all direct and indirect subclasses of a class.
 void Subclass.execute(Processor processor, AlgernonKBSet kbSet)
          Executes the Subclass opcode, which collects all direct and indirect subclasses of a class.
 void RootClass.execute(Processor processor, AlgernonKBSet kbSet)
          Executes the RootClass opcode, which collects all the root classes of a class.
 void Query.execute(Processor processor, AlgernonKBSet kbSet)
          Executes the QUERY opcode.
 void Parent.execute(Processor processor, AlgernonKBSet kbSet)
          Executes the Parent opcode, which verifies that a pair of frames are parent and child.
 void Name.execute(Processor processor, AlgernonKBSet kbSet)
          Executes the NAME opcode.
 void LeafClass.execute(Processor processor, AlgernonKBSet kbSet)
          Executes the LeafClass opcode, which collects all direct and indirect subclasses of a class that are leaves.
 void DeleteRelation.execute(Processor processor, AlgernonKBSet kbSet)
          Executes the DeleteRelation opcode.
 void DeleteInstance.execute(Processor processor, AlgernonKBSet kbSet)
          Executes the DeleteInstance opcode.
 void DeleteFrame.execute(Processor processor, AlgernonKBSet kbSet)
          Executes the DeleteFrame opcode.
 void DeleteFacet.execute(Processor processor, AlgernonKBSet kbSet)
          Executes the DeleteFacet opcode.
 void DeleteClass.execute(Processor processor, AlgernonKBSet kbSet)
          Executes the DeleteClass opcode.
 void CreateRules.execute(Processor processor, AlgernonKBSet kbSet)
          Executes the :ADD-RULES macro.
 void CreateRelation.execute(Processor processor, AlgernonKBSet kbSet)
          Creates a new relation in the KB.
 void CreateInstance.execute(Processor processor, AlgernonKBSet kbSet)
          Executes the CreateInstance opcode.
 void CreateClass.execute(Processor processor, AlgernonKBSet kbSet)
          Executes the CREATE-CLASS opcode.
 void Child.execute(Processor processor, AlgernonKBSet kbSet)
          Executes the Child opcode, which verifies that a pair of frames are parent and child.
 void Ask.execute(Processor processor, AlgernonKBSet kbSet)
          Executes the ASK opcode.
 void ActivateBCRules.execute(Processor processor, AlgernonKBSet kbSet)
          Executes the Activate BC opcode.
 

Uses of AlgernonException in org.algernon.exception
 

Subclasses of AlgernonException in org.algernon.exception
 class AlgernonCompilerException
          This is a generic compiler exception to be thrown by Algernon code.
 class AlgernonDataException
          This exception indicates a problem in the data or rules.
 class AlgernonRuntimeException
          This is a generic runtime exception to be thrown by Algernon code.
 class AlgernonStorageCardinalityException
          This is an exception thrown at runtime by Algernon code when a cardinality exception prevents a relation from being stored in the KB.
 

Uses of AlgernonException in org.algernon.kb
 

Subclasses of AlgernonException in org.algernon.kb
 class AlgernonStorageException
          This exception is thrown when an error occurs during a storage operation.
 

Methods in org.algernon.kb that throw AlgernonException
 LispValue AlgernonKBSet.query(Clause clause)
          Queries KBs until one of the queries is successful.
 LispValue AlgernonKB.query(Clause clkause)
          Returns all of the values that match the given clause.
 void AlgernonKB.deleteClass(AlgernonClass frame)
          Deletes a class and all of its relations from storage.
 void AlgernonKB.deleteFacet(AlgernonFacet frame)
          Deletes a frame and all of its relations from storage.
 void AlgernonKB.deleteFrame(AlgernonFrame frame)
          Deletes a frame and all of its relations from storage.
 void AlgernonKB.deleteInstance(AlgernonInstance frame)
          Deletes a frame and all of its relations from storage.
 void AlgernonKB.deleteRelation(AlgernonRelation frame)
          Deletes a frame and all of its relations from storage.
 String AlgernonFrame.getDisplayName()
          Returns the display name of this Frame, or the name if the display name relation is not defined.
 Collection AlgernonFrame.getRelationValues(AlgernonRelation relation)
          Returns the relation values.
 void AlgernonFrame.setDisplayName(String newName)
          Sets this frame's display name (that is, a pretty name) to the given string.
 Collection AlgernonFrame.getOwnRelationValues(AlgernonRelation slot)
          Returns a collection of the values in the given slot.
 

Uses of AlgernonException in org.algernon.kb.okbc.protege
 

Methods in org.algernon.kb.okbc.protege that throw AlgernonException
 LispValue AlgernonProtegeKB.query(Clause clause)
          Returns all of the values that match the given clause.
 void AlgernonProtegeKB.deleteClass(AlgernonClass frame)
          Deletes a frame and all of its relations from storage.
 void AlgernonProtegeKB.deleteFacet(AlgernonFacet frame)
          Deletes a frame and all of its relations from storage.
 void AlgernonProtegeKB.deleteFrame(AlgernonFrame frame)
          Deletes a frame and all of its relations from storage.
 void AlgernonProtegeKB.deleteInstance(AlgernonInstance frame)
          Deletes a frame and all of its relations from storage.
 void AlgernonProtegeKB.deleteRelation(AlgernonRelation frame)
          Deletes a relation from storage.
 String AlgernonProtegeFrame.getDisplayName()
          Returns the name of this Frame.
 Collection AlgernonProtegeFrame.getOwnRelationValues(AlgernonRelation slot)
          Returns a collection of the values in the given slot.
 Collection AlgernonProtegeFrame.getRelationValues(AlgernonRelation relation)
          Returns the relation values.
 void AlgernonProtegeFrame.setDisplayName(String newName)
          Sets this frame's display name (that is, a pretty name) to the given string.
 

Uses of AlgernonException in org.algernon.test
 

Methods in org.algernon.test that throw AlgernonException
 void InitializeAlgernonTwice.test()
           
private  void InitializeAlgernonTwice.initAlgernon()
           
static void InitializeAlgernonTwice.main(String[] args)
           
 void BasicTest.PharmGKBTest()
          This performs the same function as the misc.MHQuery1 program.
 


Algernon Software