psdi.app.meter

Class ReadingSet

    • Constructor Detail

      • ReadingSet

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

      • 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 MboSet
        Throws:
        MXException
      • updateReadingsAfterNewReading

        protected abstract void updateReadingsAfterNewReading()
                                                       throws MXException,
                                                              java.rmi.RemoteException
        updates readings following the addition of a new reading. 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().
        Throws:
        MXException
        java.rmi.RemoteException
      • updateReadingsAfterReadingUpdate

        protected abstract void updateReadingsAfterReadingUpdate()
                                                          throws MXException,
                                                                 java.rmi.RemoteException
        updates readings following a reading update. If a new reading is entered, then the update is handled by updateReadingsAfterNewReading().
        Throws:
        MXException
        java.rmi.RemoteException
      • getPreviousReading

        public MboRemote getPreviousReading()
                                     throws MXException,
                                            java.rmi.RemoteException
        returns the reading in the set previous to the current reading. This method is used specifically when rolling a meter reading update down the hierarchy and forward to historical readings that need to be modified.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        FldMeterReadingDelta