psdi.app.asset

Class MeterReadingSet

    • Constructor Detail

      • MeterReadingSet

        public MeterReadingSet(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 MeterReading 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
        Description copied from class: MboSet
        Can an object be added to the collection ? This is usually overriden in the specific mboset
        Overrides:
        canAdd in class ReadingSet
        Throws:
        MXException
      • updateReadingsAfterNewReading

        protected void updateReadingsAfterNewReading()
                                              throws MXException,
                                                     java.rmi.RemoteException
        updates meterreadings following the addition of a new meterreading. If a new reading is not entered, that is, the reading is an update to an already existing meterreading, then the update is handled by updateReadingsAfterReadingUpdate(). The set processed by this method contains meterreadings for all AssetMeters belonging to the children of the owning AssetMeter's asset.
        Specified by:
        updateReadingsAfterNewReading in class ReadingSet
        Throws:
        MXException
        java.rmi.RemoteException