![]() | ![]() | ![]() | instance-dimension-value | ![]() |
|
| [Function] |
Purpose
Obtain a dimension value of a unit instance.
Package :gbbopen
Module :gbbopen-core
Arguments and values
| unit-instance | A unit instance | |
| dimension-name | A symbol specifying a dimension of unit-instance | |
| dimension-value | An object | |
| dimension-value-type | One of: :point:interval:mixed:element:boolean | |
| comparison-type | One of: numberfixnumshort-floatsingle-floatdouble-floatlong-floatpseudo-probability | |
| composite-type | One of :set,
:sequence:ascending-series
ordering-dimension-name):descending-series
ordering-dimension-name)nil
| |
| ordering-dimension-name | A non-keyword symbol or nil
|
Returns
Five values:
nil if it is an
incomposite dimension value
nil otherwise
Errors
The dimension dimension-name is not defined for
unit-instance.
See also
define-unit-class
dimensions-of
instance-dimension-values
make-instance
Examples
Return the x dimension value of the unit instance,
hyp:
> (instance-dimension-value hyp 'x) 1835 :point :fixnum nil nil >and its
classification> (instance-dimension-value hyp 'classification) (:car :truck) :element eq :set nil >
Return the characterword:
> (instance-dimension-value w 'character) "what's" :element eql :set nil >and its
char-code> (instance-dimension-value word 'char-code) (119 104 97 116 39 115) :point fixnum :set nil >
The GBBopen Project
![]() | ![]() | ![]() | instance-dimension-value | ![]() |