In general, in one aspect, the invention relates to a method for
integrating dimensional analysis in a program comprising defining a
specific dimension class within the program, wherein the specific
dimension class is an instance of the dimension meta-class, defining an
instantiation of a unit class within the program, wherein the
instantiation of the unit class comprises the specific dimension class as
a type parameter associated with the instantiation of the unit class,
defining a method within the program using the instantiation of the unit
class and the specific dimension class, and compiling the program to
generate an executable code corresponding to the program, wherein the
program is written in an object-oriented language.