describe-instanceGBBopen Coredescribe-unit-classdescribe-instance-slot-valueGoTo Top

describe-instance-slot-value   unit-instance slot-name value &optional stream[Generic Function]

Customize slot-value printing by describe-instance.

Method signatures

describe-instance-slot-value  (unit-instance standard-unit-instance) slot-name value &optional stream

Package   :gbbopen

Module   :gbbopen-core

Arguments and values

unit-instance     A unit instance (or space instance)
slot-name     A non-nil, non-keyword symbol
value     An object
stream     A stream (default is *standard-output*)

Describe-instance-slot-value is called by describe-instance to print each slot value; it should not be called directly. The slot-value representation is printed to the output stream.

See also

Describe the observation-duration slot of a hyp unit instance as a human-readable duration:

  (defmethod describe-instance-slot-value
      ((hyp hyp)
       (slot-name (eql 'observation-duration)) value
       &optional (stream *standard-output*))
    (if value
        (pretty-duration duration 5 stream)
        (prin1 nil stream)))

The GBBopen Project

describe-instanceGBBopen Coredescribe-unit-classdescribe-instance-slot-valueGoTo Top