com.sfm.ap210.jsdai
Class MIMdimensionalUnitUtils

java.lang.Object
  extended by com.sfm.ap210.jsdai.MIMdimensionalUnitUtils

public class MIMdimensionalUnitUtils
extends java.lang.Object

Some basic utilities to demonstrate the extraction of length and area physical measures. Supports unit types of both conversion_based_unit and si_unit. Measure quantities are converted to and returned as either mm or sq mm.


Constructor Summary
MIMdimensionalUnitUtils(MIMops mimOps)
           
 
Method Summary
 double areaMeasureWithUnitInSqMM(jsdai.SAp210_electronic_assembly_interconnect_and_packaging_design_mim_lf.EArea_measure_with_unit e_amwu)
          Evaluates a given area_measure_with_unit and returns the measure value as a scalar quantity expressed in square mm.
 double getConversionFactorToMM(jsdai.SAp210_electronic_assembly_interconnect_and_packaging_design_mim_lf.ELength_unit e_lu)
          Returns a scalar conversion factor from the given length_unit to mm.
 Length lengthMeasureWithUnit(jsdai.SAp210_electronic_assembly_interconnect_and_packaging_design_mim_lf.ELength_measure_with_unit e_lmwu)
           
 double lengthMeasureWithUnitInMM(jsdai.SAp210_electronic_assembly_interconnect_and_packaging_design_mim_lf.ELength_measure_with_unit e_lmwu)
          Evaluates a given length_measure_with_unit and returns the measure value as a scalar expressed in mm.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MIMdimensionalUnitUtils

public MIMdimensionalUnitUtils(MIMops mimOps)
Method Detail

lengthMeasureWithUnitInMM

public double lengthMeasureWithUnitInMM(jsdai.SAp210_electronic_assembly_interconnect_and_packaging_design_mim_lf.ELength_measure_with_unit e_lmwu)
                                 throws jsdai.lang.SdaiException
Evaluates a given length_measure_with_unit and returns the measure value as a scalar expressed in mm. Supports unit types of both conversion_based_unit and si_unit.

Parameters:
e_lmwu - the given length_measure_with_unit
Returns:
a scalar quantity representing the value of the given length_measure_with_unit expressed as a double in mm
Throws:
jsdai.lang.SdaiException

lengthMeasureWithUnit

public Length lengthMeasureWithUnit(jsdai.SAp210_electronic_assembly_interconnect_and_packaging_design_mim_lf.ELength_measure_with_unit e_lmwu)
                             throws jsdai.lang.SdaiException
Throws:
jsdai.lang.SdaiException

areaMeasureWithUnitInSqMM

public double areaMeasureWithUnitInSqMM(jsdai.SAp210_electronic_assembly_interconnect_and_packaging_design_mim_lf.EArea_measure_with_unit e_amwu)
                                 throws jsdai.lang.SdaiException
Evaluates a given area_measure_with_unit and returns the measure value as a scalar quantity expressed in square mm. Supports unit types of both conversion_based_unit and si_unit.

Parameters:
e_amwu - the given area_measure_with_unit
Returns:
a scalar quantity representing the value of the given area_measure_with_unit expressed as a double in sq. mm.
Throws:
jsdai.lang.SdaiException

getConversionFactorToMM

public double getConversionFactorToMM(jsdai.SAp210_electronic_assembly_interconnect_and_packaging_design_mim_lf.ELength_unit e_lu)
                               throws jsdai.lang.SdaiException
Returns a scalar conversion factor from the given length_unit to mm. Supports unit types of both conversion_based_unit and si_unit.

Parameters:
e_lu - the given length_unit
Returns:
scalar conversion factor from the given length_unit to mm.
Throws:
jsdai.lang.SdaiException