define-unit-classGBBopen Coredeleted-unit-instancedelete-instanceGoTo Top

delete-instance   unit-instance => unit-instance[Generic Function]

Purpose
Delete a unit instance.

Method signatures

delete-instance  (deleted-unit-instance deleted-unit-instance) => deleted-unit-instance
delete-instance  (unit-instance standard-unit-instance) => deleted-unit-instance
delete-instance  (space-instance standard-space-instance) => deleted-unit-instance

Package   :gbbopen

Module   :gbbopen-core

Arguments and values

unit-instance     The unit instance (or space instance) to be deleted

Returns
The deleted instance deleted-unit-instance.

Events
A delete-instance-event is signaled at the start of the deletion process and an instance-deleted-event is signaled when the deletion has been completed. The following events may also be signaled:

Description
Deleting a deleted-unit-instance has no effect.

See also
    delete-all-space-instances
    delete-blackboard-repository
    delete-space-instance
    make-instance
    reset-gbbopen
    reset-unit-class

Example
Create, then delete, then delete again, a hyp unit instance:

  > (delete-instance (make-instance 'hyp :location '(896 388) :belief .68))
  #<deleted-unit-instance hyp 311>
  > (delete-instance *)
  #<deleted-unit-instance hyp 311>
  >


The GBBopen Project


define-unit-classGBBopen Coredeleted-unit-instancedelete-instanceGoTo Top