psdi.util

Class DynamicJobPlanHelper

  • java.lang.Object
    • psdi.util.DynamicJobPlanHelper


  • public class DynamicJobPlanHelper
    extends java.lang.Object
    • Constructor Detail

      • DynamicJobPlanHelper

        public DynamicJobPlanHelper()
    • Method Detail

      • convertValue

        public static double convertValue(MboRemote thisMbo,
                                          double value,
                                          java.lang.String fromUnitId,
                                          java.lang.String toUnitId)
                                   throws java.rmi.RemoteException,
                                          MXException
        Convert the given value from the measure unit fromUnitId to the measure unit tounitId The converion record must exists. If not, it throw an exception
        Parameters:
        value - the double value to convert
        fromUnitId - the measureunitid in which the value is currently specified
        toUnitId - the measureunitid in which the value should be converted to
        Returns:
        the convert value according to the conversion factor. Cannot be null
        Throws:
        java.rmi.RemoteException
        MXException
      • getJobPlan

        public static MboRemote getJobPlan(MboRemote jobResource)
                                    throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException