psdi.app.asset

Class FldLinearRefMethodOffsetMeasureUnitId

    • Constructor Detail

      • FldLinearRefMethodOffsetMeasureUnitId

        public FldLinearRefMethodOffsetMeasureUnitId(MboValue mbv)
                                              throws MXException,
                                                     java.rmi.RemoteException
        Construct and attach to the mbo value
        Parameters:
        mbv -
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • action

        public void action()
                    throws MXException,
                           java.rmi.RemoteException
        Returns the conversion factor that will convert the "from" unit of measure(measureUnitId) to the "to" unit of measure(offsetMeasureUnitId).
        This method checks the Conversion table as follows:
        1. - If the "form" & "to" units of measure (UOMs) are the same, returns 1.
        2. - Checks the conversion table for a match for the UOMs and returns the factor if a match is found.
        3. - If no match is found, checks the table for the inverse conversion factor for the UOMs and returns 1/factor if a match is found.
        4. - If no match is found, throws an exception.

        Specified by:
        action in interface MboValueListener
        Overrides:
        action in class FldMeasureUnitId
        Parameters:
        UserInfo - The userInfo of the calling Mbo.
        fromUOM(measureUnitId) - The unit of measure(UOM) to be converted from.
        toUOM(offsetMeasureUnitId) - The unit of measure to be converted to.
        Throws:
        MXException
        java.rmi.RemoteException