psdi.app.workorder

Class PriorityData

  • java.lang.Object
    • psdi.app.workorder.PriorityData
    • Constructor Summary

      Constructors 
      Constructor and Description
      PriorityData(UserInfo userInfo)
      The old constructor, which did not use site data to fetch the Priority Data, and was hence often in error.
      PriorityData(UserInfo userInfo, java.lang.String siteID)
      Construct the Priority Data using the passed siteID; this should always be done this way for any version of Maximo later than 5.2 .
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int calculatePriority(int woPriority, int assetLocPriority)
      Calculates the calculated priority depending on the selected priority formula.
      int calculateResponseTime(int calcP)
      Calculate a response time given a work/calc priority.
      boolean doPriorityCalc()
      Returns true if priority calculations are enabled.
      boolean doRespondByCalc()
      Returns true if response time calculations are enabled.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PriorityData

        public PriorityData(UserInfo userInfo,
                            java.lang.String siteID)
                     throws MXException,
                            java.rmi.RemoteException
        Construct the Priority Data using the passed siteID; this should always be done this way for any version of Maximo later than 5.2 .
        Throws:
        MXException
        java.rmi.RemoteException
      • PriorityData

        public PriorityData(UserInfo userInfo)
                     throws MXException,
                            java.rmi.RemoteException
        The old constructor, which did not use site data to fetch the Priority Data, and was hence often in error.
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • doPriorityCalc

        public boolean doPriorityCalc()
        Returns true if priority calculations are enabled.
      • doRespondByCalc

        public boolean doRespondByCalc()
        Returns true if response time calculations are enabled.
      • calculatePriority

        public int calculatePriority(int woPriority,
                                     int assetLocPriority)
        Calculates the calculated priority depending on the selected priority formula.
        Users can override this method with their own formula.
        Parameters:
        woPriority - The WO priority.
        assetLocPriority - the AssetLoc priority.
        Returns:
        the Calculated Priority. This value should be in the range of [1..999].
      • calculateResponseTime

        public int calculateResponseTime(int calcP)
        Calculate a response time given a work/calc priority.
        Parameters:
        calcP - the calculated priority.
        Returns:
        the response time.