![]() | ![]() | ![]() | make-instance | ![]() |
| class
&rest initargs&key &allow-other-keys | [Generic Function] |
Purpose
Create a new instance of class, such as a new
unit instance.
Method signatures
( class standard-class)
&rest initargs
=> instance
|
( class symbol)
&rest initargs
=> instance
|
Package :gbbopen
Module :gbbopen-core
Arguments and values
class | A class designator | |
initargs | An initialization argument list | |
instance | A standard-object instance
|
Returns
The newly created instance of class.
Events
When a unit instance is created, events are signaled in the
following sequence:
nonlink-slot-updated-event
link-event
link-event
instance-added-to-space-instance-event
instance-created-event
is signaled.
Errors
Use of an initialization argument that has not been declared as valid.
If class is a unit class and the supplied or generated instance name is identical to the instance name of an existing unit instance of class.
Description
Specifying a :space-instances
:initial-space-instances
:instance-name
:use-global-instance-name-counter
nil
or was not specified for the unit class) or the global
instance-name counter value (if the
:use-global-instance-name-counter
See also
change-class
define-event-class
define-unit-class
define-space-class
delete-instance
describe-instance
initial-class-instance-number
instance-name-of
make-duplicate-instance
make-duplicate-instance-changing-class
make-space-instance
next-class-instance-number
Example
Create a new hyp
unit instance:
> (make-instance 'hyp :location (list x y) :classification '(:car :truck) :color ':gray :belief .85 :velocity-range '(5 35) :supporting-hyps supporting-hyps) #<hyp 419 (1835 4791) 0.85 [5..35]> >
Note
The function
The GBBopen Project
![]() | ![]() | ![]() | make-instance | ![]() |