NextPrevUpTopContentsIndex

def-kb-class

Macro
Summary

Defines a class for use in the object base.

Signature

def-kb-class class-name superclass-list slot-descriptions &rest options => class

Arguments

The arguments are identical to those for defclass .

Values

class

the named class object

Description

Defines a new CLOS class as defclass does. However, if none of the given superclasses is a subclass of standard-kb-object , then standard-kb-object is added to the list of superclasses.

Examples
(def-kb-class vehicle () ((driver :initarg :driver)))
(def-kb-class truck (vehicle)
  ((load :accessor truck-load)))
See also

def-named-kb-class
def-kb-struct


KnowledgeWorks and Prolog User Guide (Windows version) - 29 Feb 2008

NextPrevUpTopContentsIndex