Next Prev Up Top Contents Index

def-named-kb-class

Macro
Syntax

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

Arguments

The arguments are identical to those for defclass .

Description

Defines a new CLOS class as defclass does. However, if none of the given superclasses is a subclass of named-kb-object , then named-kb-object is added to the list of superclasses. The class inherits a name slot kb-name of which the initialisation form ( :initform ) generates a symbol from the class name using gentemp (See Common Lisp: the Language (2nd Edition)).

Values

Returns the class object.

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

def-kb-class

def-kb-struct

get-kb-object

kb-name


LispWorks KnowledgeWorks and Prolog User Guide - 14 Dec 2001

Next Prev Up Top Contents Index