Automatic Unit Conversion
Guarantee correct units in data.
The data presentation and manipulation layers in the measuring units conversion mechanism allow the user to select a convenient unit for data entry, display, and charting while guarantee correct data in a developer specified unit for program manipulation. The simulation routines always handle data in internal units; therefore, errors due to incorrect units in data can be eliminated.
Each unit dimension is represented by a Unit object, which contains a table of conversion factors. The Temperature object are handled specially because of the offset factor between Celsius and Fahrenheit. Others contain an array of unit names and their corresponding conversion multipliers.
The developer can specify the internal unit for each attribute of a Number type.
SansGUI Modeling and Simulation Environment version 1.2
Copyright © 2000-2003 ProtoDesign, Inc. All rights reserved.