psdi.app.asset

Class AssetMeterSet

    • Constructor Detail

      • AssetMeterSet

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

      • getMboInstance

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

        public void canAdd()
                    throws MXException
        Can an AssetMeter object be added? If the owner of the potential AssetMeter is not Asset, prevent new AssetMeter from being added.
        Overrides:
        canAdd in class MboSet
        Throws:
        MXApplicationException("asset","assetMeterNoAdd") - is thrown when the owner is null or the owner is not Location
        MXException