![]() | ![]() | ![]() | instance-name-of | ![]() |
|
| instance => instance-name | [Generic Function] |
Purpose
Return the instance name of a unit instance.
Setf syntax
|
|
instance) instance-name) |
Method signatures
(instance standard-event-instance)
=> instance-name
|
(instance standard-unit-instance)
=> instance-name
|
Package :gbbopen
Module :gbbopen-core
Arguments and values
| instance | A unit instance or an event instance | |
| instance-name | An object |
Returns
The instance name of the instance.
Errors
The supplied instance-name provided to (setf instance-name-of
is identical to the instance name of an existing unit instance of the
same class as instance.
See also
make-instance
Examples
Return the instance names of the unit instances supporting
hyp unit instance 180:
> (mapcar #'instance-name-of
(supporting-hyps-of (find-instance-by-name 'hyp 180)))
(123 158 94)
>
Change the instance name of hyp 180 to
"bogus-180":
> (setf (instance-name-of (find-instance-by-name 180 'hyp)) "bogus-180") "bogus-180" >
The GBBopen Project
![]() | ![]() | ![]() | instance-name-of | ![]() |