Appendix A. Jess Functions Grouped by Usage

Miscellaneous functions

bag,   bind,   clear-storage,   fetch,   gensym*,   jess-version-number,   jess-version-string,   set-factory,   setgen,   store,   system,   time

Functions related to files and other I/O

close,   format,   get-multithreaded-io,   open,   printout,   read,   readline,   set-multithreaded-io,   socket

Functions for interacting with Java code

call,   context,   defclass,   definstance,   get,   get-member,   import,   instanceof,   load-function,   load-package,   new,   set,   set-member,   synchronized,   throw,   try,   undefinstance,   update

Logical functions

and,   bit-and,   bit-not,   bit-or,   not,   or

Functions used primarily for debugging

list-function$,   matches,   show-jess-listeners,   unwatch,   view,   watch

Functions for working with defqueries

count-query-results,   run-query

Control structures

apply,   call-on-engine,   foreach,   if,   progn,   return,   while

Functions for pretty-printing constructs

list-deftemplates,   ppdeffacts,   ppdeffunction,   ppdefglobal,   ppdefquery,   ppdefrule,   ppdeftemplate,   rules,   show-deffacts,   show-deftemplates

Functions for interacting with the rule engine

agenda,   batch,   bload,   bsave,   build,   clear,   clear-focus-stack,   defadvice,   do-backward-chaining,   engine,   eval,   exit,   focus,   get-current-module,   get-focus,   get-focus-stack,   get-reset-globals,   get-salience-evaluation,   get-strategy,   halt,   list-focus-stack,   pop-focus,   reset,   run,   run-until-halt,   set-current-module,   set-node-index-hash,   set-reset-globals,   set-salience-evaluation,   set-strategy,   undefadvice,   undefrule

Mathematical functions

*,   **,   +,   -,   /,   <,   <=,   <>,   =,   >,   >=,   abs,   div,   e,   eq,   eq*,   exp,   float,   integer,   log,   log10,   long,   max,   min,   mod,   neq,   pi,   random,   round,   sqrt

Functions which query the type of a Value

evenp,   external-addressp,   floatp,   integerp,   lexemep,   longp,   multifieldp,   numberp,   oddp,   stringp,   subsetp,   symbolp

String manipulation functions

asc,   lowcase,   str-cat,   str-compare,   str-index,   str-length,   sub-string,   sym-cat,   upcase

Functions for working with multifields

complement$,   create$,   delete$,   explode$,   first$,   implode$,   insert$,   intersection$,   length$,   member$,   nth$,   replace$,   rest$,   subseq$,   union$

Functions for working with facts

assert,   assert-string,   dependencies,   dependents,   duplicate,   fact-id,   fact-slot-value,   facts,   load-facts,   modify,   retract,   retract-string,   save-facts

Back to index