:ADD-CLASS
Purpose
Creates a new subclass.
Parameters
- (variable superclass)
- A variable to be bound to the new class and the superclass of the new class.
- clause*
- Clauses to be asserted about the new class. If a
(:NAME ...)
clause
is included, the new class will be created with the name given in that clause.
Examples
(:ADD-CLASS (?c Automobiles) (:NAME ?c "Trucks"))
(:ADD-CLASS (?cats Mammals) (:NAME ?cats "Cats") (enemyOf ?cats Dogs))
Success criteria
Succeeds if the subclass is successfully created.
Failure criteria
Fails if the subclass can not be created.
Notes
The superclass of the new class must already exist.
Related commands
Back to...
Algernon commands
Algernon Documentation Central
Algernon home page