instance-dimension-valuesGBBopen Coremake-duplicate-instanceinstance-name-ofGoTo Top

instance-name-of   unit-instance => instance-name[Generic Accessor]

Purpose
Return the instance name of a unit instance.

Setf syntax

(setf (instance-name-of   instance) instance-name) => instance-name

Method signatures

instance-name-of  (unit-instance standard-event-instance) => instance-name
instance-name-of  (unit-instance standard-unit-instance) => instance-name

Package   :gbbopen

Module   :gbbopen-core

Arguments and values

unit-instance     A unit instance or an event instance
instance-name     An object

Returns
The instance name of the unit-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 unit-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-dimension-valuesGBBopen Coremake-duplicate-instanceinstance-name-ofGoTo Top