psdi.app.location

Class LocationMeterSet

    • Constructor Detail

      • LocationMeterSet

        public LocationMeterSet(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 LocationMeter 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 a LocationMeter object be added? If the owner of the potential LocationMeter is not Location, prevent new LocationMeter from being added. If LocationMeter is being added from an owning Location, checks to make sure the Location has a type of OPERATING.
        Overrides:
        canAdd in class MboSet
        Throws:
        MXApplicationException("locations","locMeterNoAdd") - when the owner is null or the owner is not Location, LocOper or MeasurePoint
        MXApplicationException("meter","locTypeForLocMeter") - when the owning Location's Type attribute is null
        MXApplicationException("locations","locMeterNoAdd") - when the owning Location's Type attribute is not null and not OPERATING
        MXException