Appendix A. Jess Functions Grouped by Usage

Functions for working with multifields

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

Functions for interacting with Java code

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

Functions for working with facts

assert,   assert-string,   fact-slot-value,   facts,   get-fact-duplication,   load-facts,   modify,   retract,   retract-string,   save-facts,   set-fact-duplication

Functions used primarily for debugging

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

Functions for working with defqueries

count-query-results,   run-query

Functions which query the type of a Value

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

Functions for pretty-printing constructs

ppdeffunction,   ppdefglobal,   ppdefrule,   ppdeftemplate,   rules,   show-deffacts,   show-deftemplates

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 the rule engine

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

Mathematical functions

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

Logical functions

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

Control structures

foreach,   if,   return,   while

String manipulation functions

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

Miscellaneous functions

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