Automatic Unit Conversion


generate/do-it.gif    3D Graphics Framework

Guarantee correct units in data.

SansGUI Unit Conversion Scheme

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.

   

Generate/automatic_unit_conversio.gif

Unit Conversion Table

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.

generate/unitflow.jpg

Internal Unit Specifications

The developer can specify the internal unit for each attribute of a Number type.

generate/unitinternal.jpg

See Also

 



C:\FH_Suite\htmlgifs\home.gif Programmable Data Validation 3D Graphics Framework

SansGUI Modeling and Simulation Environment version 1.2

Copyright © 2000-2003 ProtoDesign, Inc. All rights reserved.

http://protodesign-inc.com