Class Unit is used to define the unit conversion tables for different units of measurement. It is a concrete and terminal class.
Number of Entries (iSize): a cell attribute of SG_TYPE_INT, indicating the number of entries in the unit conversion table.
Locked Entries (iLocked): an output only cell attribute of SG_TYPE_INT, used to lock the number of entries in the unit conversion table. This number is maintained by SansGUI.
Multiplier (fMultiplier): an array attribute of SG_TYPE_FLT, representing the unit multipliers in the unit table. Each multiplier is associated with a unit name below. The first entry, the base unit, is always 1 and is locked.
Unit Name (sUnitName): an array attribute of SG_TYPE_STR, representing the unit names in the unit table. Each unit name has a corresponding multiplier described above.
The class functions for unit conversion are all intrinsic, implemented in the SansGUI environment.
Not applicable.
The Unit class is terminal and cannot be subclassed. Simulation developers can create unit objects in Schema Definitions for unit references in class attributes.
User Extensible Unit Conversion in the SansGUI User's Guide
Accessing Class Properties, Unit Objects and Adding Unit Objects in the SansGUI Developer's Guide
SansGUI Modeling and Simulation Environment Version 1.2
Copyright © 2000-2003 ProtoDesign, Inc. All rights reserved.