psdi.app.pm

Class PMMeterSet

    • Field Detail

      • initialPMMeterOwningMeter

        public MboRemote initialPMMeterOwningMeter
    • Constructor Detail

      • PMMeterSet

        public PMMeterSet(MboServerInterface ms)
                   throws MXException,
                          java.rmi.RemoteException
        Construct the set
        Parameters:
        ms - The Mbo Server interface
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • getMboInstance

        protected Mbo getMboInstance(MboSet ms)
                              throws MXException,
                                     java.rmi.RemoteException
        Generate a new PMMeter object
        Specified by:
        getMboInstance in class MboSet
        Parameters:
        ms - MboSet
        Returns:
        the new PMMeter object
        Throws:
        MXException
        java.rmi.RemoteException
      • canAdd

        public void canAdd()
                    throws MXException
        If the PM doesnot have either an asset or location , users cannot attach meters to that PM. Throws interactive message in case of UI to delete the PM Hierarchy forecast if the new meter is added
        Overrides:
        canAdd in class MboSet
        Throws:
        MXException - If PM has neither asset or location, then MXApplicationException("PM", "NoAssetLoc")
      • pmMeter

        public boolean pmMeter(MboRemote pmMbo)
                        throws java.rmi.RemoteException,
                               MXException
        This method cycles through the PMMeters that contain either an asset or location from the Work Order and marks the PM that needs to be alerted.
        Specified by:
        pmMeter in interface PMMeterSetRemote
        Parameters:
        pmMbo - The PM mbo contains the asset/location.
        Returns:
        timeBasedPM Indicates whether or not PM is time or meter based.
        Throws:
        java.rmi.RemoteException
        MXException
        See Also:
        psdi.app.pm.PMMeterSet#pmMeter()