psdi.app.meter

Class MeterService

    • Constructor Detail

      • MeterService

        public MeterService()
                     throws java.rmi.RemoteException
        Construct the MeterService object
        Throws:
        java.rmi.RemoteException
      • MeterService

        public MeterService(MXServer mxServer)
                     throws java.rmi.RemoteException
        Construct the MeterService object
        Parameters:
        mxServer -
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • meterUniqueToSet

        public void meterUniqueToSet(Mbo thisMbo)
                              throws MXException,
                                     java.rmi.RemoteException
        ensures that a MeterName value is added only once to the object passed in the parameter. The set against which this MeterName value is checked may include other newly added objects that are not yet saved to the database.
        Specified by:
        meterUniqueToSet in interface MeterServiceRemote
        Parameters:
        thisMbo - the object to which the meter is being added
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        MeterService.meterUniqueToSet(Mbo thisMbo)
      • meterSequenceUniqueToSet

        public void meterSequenceUniqueToSet(Mbo thisMbo)
                                      throws MXException,
                                             java.rmi.RemoteException
        informs when a duplicate sequence number has been entered for a meter group or on an asset or location. The set against which this Mbo's sequence value is checked (and to which this Mbo belongs) may include other newly added objects that are not yet saved to the database.

        The set can be saved with duplicate sequence numbers. If sequence numbers are duplicated when applying a meter group to an asset or location, notification of each duplicate sequence number is displayed in a single dialog after the group's meters are saved to the asset or location. If a sequence number is duplicated while adding a meter to a group, asset or location, a message displays on validation of the sequence number. While adding a meter to a group, if the PropagateMeterGroupMod flag is checked the addition is copied to all the assets and locations that reference the meter group. If sequences are duplicated on assets and/or locations during this propagation, a single dialog will show all duplications at the end of the transaction.

        Specified by:
        meterSequenceUniqueToSet in interface MeterServiceRemote
        Parameters:
        thisMbo - the object to which the meter is being added
        Throws:
        MXApplicationException("meter","dupseqnum2") - when a duplicate sequence number is added to a meter group.
        MXApplicationException("meter","dupseqnumAsset2") - when a duplicate sequence number is added to an asset's meters.
        MXApplicationException("meter","dupseqnumLocation2") - when a duplicate sequence number is added to a location's meters.
        MXApplicationException("meter","dupseqnumResolution2") - nested in MXApplicationException("meter","dupseqnumAsset2") or MXApplicationException("meter","dupseqnumLocation2") when a sequence is duplicated while adding a meter group to an asset or location, or when an addition to a meter group is propagated to an asset or location.
        MXApplicationException("meter","dupseqnumQuery2") - nested in MXApplicationException("meter","dupseqnumAsset2") or MXApplicationException("meter","dupseqnumLocation2") when a sequence is duplicated while adding a meter to a group, asset or location.
        MXException
        java.rmi.RemoteException
        See Also:
        MeterService.meterSequenceUniqueToSet(Mbo thisMbo)