NextPrevUpTopContentsIndex

def-kb-struct

Macro
Syntax

def-kb-struct name-and-options { slot-description }*

Arguments

The arguments are as for defstruct , except that in name-and-options the only valid options are :include and :print-function .

Description

Defines a KnowledgeWorks structure. These are analogous to Lisp structures except that they may be used in rules similarly to CLOS objects.

Values

Returns the name of the structure.

Examples
(def-kb-struct start)
(def-kb-struct (named-kb-struct
  (:print-function print-named-kb-struct))
  (name (gensym 'named-kb-struct)))
(def-kb-struct (possible-trucks-for-load
  (:include named-kb-struct))
  load trucks)
See also

def-kb-class


KnowledgeWorks and Prolog User Guide - 4 Apr 2005

NextPrevUpTopContentsIndex