psdi.app.masterpm

Class MasterPMMeter

  • java.lang.Object
  • All Implemented Interfaces:
    java.rmi.Remote, MasterPMMeterRemote, MboConstants, MboRemote, MaxRemoteProxy


    public class MasterPMMeter
    extends Mbo
    implements MasterPMMeterRemote
    MBO to represent MasterPMMeter. See the MasterPM package description for details.

    The key attributes for this object are masterPmnum and metername.

    Attribute NameDescription
    AlertLeadMeter units prior to attaining the frequency when the user will be warned that this PM is due.
    FrequencyNumber of meter units to elapse between work orders generated by this PM.
    InitialReadingInitial Meter reading
    MasterPMNumIdentifier for the MasterPM record.
    MeterNameIdentifier for the Metername in the Meter object.
    ToleranceThis field will prompt a work order to be generated when the Units to Go becomes equal to or less than the value specified.
    UpdMeterBasedFreqA boolean field that indicates whether the Master PM updates the meter based fields on the associated PM records or not.

    • Constructor Detail

      • MasterPMMeter

        public MasterPMMeter(MboSet ms)
                      throws MXException,
                             java.rmi.RemoteException
        Construct the MasterPMMeter object
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Sets default values for a new MasterPMMeter object.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • appValidate

        public void appValidate()
                         throws MXException,
                                java.rmi.RemoteException
        Frequency should be greater than Zero
        Overrides:
        appValidate in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • validateMeter

        public void validateMeter()
                           throws MXException,
                                  java.rmi.RemoteException
        validates whether the MasterPMMeter is attached to asset or location.
        Parameters:
        assetnum - identifier of an asset
        location - identifier of a location
        Throws:
        MXException - If both assetnum and location is 'null' then MXApplicationException("MasterPM","needAssetOrLocation")
        java.rmi.RemoteException
      • skipCopyField

        protected boolean skipCopyField(MboValueInfo mvi)
                                 throws java.rmi.RemoteException,
                                        MXException
        This method overrides the skipCopyField() in the Mbo. This method takes the MboValueInfo as its parameter to see if this field needs to be copied or skipped.If this field does not need to be copied, it returns true. The following fields donot get copied from the source MasterPMMeter to the target MasterPMMeter.
        1. masterpmnum
        Overrides:
        skipCopyField in class Mbo
        Parameters:
        mvi - The MboValueInfo object of the MboValue that needs to be copied.
        Returns:
        True,if the field does not need to be copied.In all other cases return false.
        Throws:
        MXException
        java.rmi.RemoteException