psdi.app.pm

Class PMService

    • Constructor Detail

      • PMService

        public PMService()
                  throws java.rmi.RemoteException
        Constructor
        Throws:
        java.rmi.RemoteException
      • PMService

        public PMService(MXServer mxServer)
                  throws java.rmi.RemoteException
        Constructor with a MXServer
        Parameters:
        mxServer - the "Server Environment" this Service is being created in.
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • init

        public void init()
        Initialization
        Specified by:
        init in interface Service
        Overrides:
        init in class AppService
        See Also:
        Starts up this listener
      • genPMsFromMasterAsset

        public PMSetRemote genPMsFromMasterAsset(AssetRemote myAssetMbo)
                                          throws MXException,
                                                 java.rmi.RemoteException
        Method to generate PMs from master PMs for a given asset. This is used by Apply IAS.
        Specified by:
        genPMsFromMasterAsset in interface PMServiceRemote
        Parameters:
        myAssetMbo - The piece of asset for which PMs are being generated
        Returns:
        PMSetRemote the set of newly added PMs which were generated from Master PM
        Throws:
        MXException
        java.rmi.RemoteException
      • initCriteriaList

        public void initCriteriaList(java.util.Hashtable criteriaTable)
                              throws MXException,
                                     java.rmi.RemoteException
        This method defines the criteria for PMService.
        Overrides:
        initCriteriaList in class AppService
        Parameters:
        criteriaTable -
        Throws:
        MXException
        java.rmi.RemoteException
      • generateWorkNoPMSetReturn

        public void generateWorkNoPMSetReturn(UserInfo ui,
                                              java.util.Enumeration enumit,
                                              boolean useFreq,
                                              int leadtime,
                                              java.lang.String repairFac,
                                              java.lang.String repSite,
                                              boolean useAssetDef)
                                       throws MXException,
                                              java.rmi.RemoteException
        Generates work orders for the PMs enumerated by their key values. This method differs from generateWork(UserInfo, Enumeration, boolean, int) in that it cleans up the PMSet for which work order generation has been processed rather that returning that set. This results in improved memory management. Messages are processed on MXServer instead of on the PMSet.
        Specified by:
        generateWorkNoPMSetReturn in interface PMServiceRemote
        Parameters:
        ui - The UserInfo used to create the PMSet.
        enumit - The Enumeration containing elements of String[] - The keys for the PMs.
        useFreq - Flag indicating whether to use frequency criteria.
        leadtime - Days ahead to generate for.
        repairFac - Repair facility to use on WOs.
        repSite - Repair facility site to use on WOs.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        This method is called to create the work orders., PMService.generateWork(UserInfo, Enumeration, boolean, int)
      • meterBasedAutoWogen

        public void meterBasedAutoWogen(MboRemote assetlocMbo,
                                        MboRemote assetLocMeterMbo)
                                 throws MXException,
                                        java.rmi.RemoteException
        Auto generation of workorders based on the changes to the Asset meter readings, or location meter readings.This method will be called from the Asset module or Location module. This is a background process which will generate the workorders in a separate thread and sends an email regarding which PM's generated workorders, or any failures.
        Specified by:
        meterBasedAutoWogen in interface PMServiceRemote
        Parameters:
        assetlocMbo - The current asset or location mbo.
        Throws:
        MXException
        java.rmi.RemoteException
      • getTopMostPMinHier

        protected PM getTopMostPMinHier(PM pmMbo)
                                 throws MXException,
                                        java.rmi.RemoteException
        Gets the topmost (in the whole hierarchy) mbo for a given PM in its hierarchy
        Parameters:
        pmMbo - The current PM Mbo.
        Returns:
        PM TopMost PM in a given PM Hierarchy
        Throws:
        MXException
        java.rmi.RemoteException
      • changeStatus

        public void changeStatus(PM pm,
                                 java.lang.String status,
                                 boolean rollToAllChildren)
                          throws MXException,
                                 java.rmi.RemoteException
        Service method used to change preventive maintenance status.
        Parameters:
        pm - PM Mbo
        status - The new pm status
        rollToAllChildren - status to roll to children as well.
        Throws:
        MXException
        java.rmi.RemoteException