psdi.app.meter

Class FldDeployedMeterNewReading

    • Constructor Detail

      • FldDeployedMeterNewReading

        public FldDeployedMeterNewReading(MboValue mbv)
                                   throws java.rmi.RemoteException,
                                          MXException
        Construct without a criteria.
        Throws:
        java.rmi.RemoteException
        MXException
    • Method Detail

      • validate

        public void validate()
                      throws MXException,
                             java.rmi.RemoteException
        if the metertype for the meter associated with this value's DeployedMeter is CHARACTERISTIC, validates the value against ALNDOMAINVALUE. If the metertype is GAUGE or CONTINUOUS, validates that this value is numeric. If the metertype is CONTINUOUS, validates that non-null new reading values are not less than zero, and makes sure that the new reading is not less than the last reading unless a Rollover value exists.
        Specified by:
        validate in interface MboValueListener
        Overrides:
        validate in class MAXTableDomain
        Throws:
        MXException
        java.rmi.RemoteException
      • action

        public void action()
                    throws MXException,
                           java.rmi.RemoteException
        For CONTINUOUS meter types, determines and sets the DeltaValue value. This action method also sets non-persistent NewReadingDate and persistent Inspector attributes if they are null.
        Specified by:
        action in interface MboValueListener
        Overrides:
        action in class MAXTableDomain
        Throws:
        MXException
        java.rmi.RemoteException
      • smartFill

        public MboSetRemote smartFill(java.lang.String value,
                                      boolean exact)
                               throws MXException,
                                      java.rmi.RemoteException
        Description copied from class: MAXTableDomain
        Get the list based on the qbe value of the attribute, and set the values if there is only one MBO in the returned set.
        Specified by:
        smartFill in interface MboValueListener
        Overrides:
        smartFill in class MAXTableDomain
        Parameters:
        value - the value the ther has entered in this field.
        exact - whether the list is retrieved use exact qbe.
        Throws:
        MXException
        java.rmi.RemoteException
      • setDomainId

        public void setDomainId(java.lang.String dom)
        Description copied from class: BasicDomain
        Set the domain id. As soon as the domainid is set, chooseActualDomainValues() is set. Method chooseActualDomainValues() should be overwritten to perform any needed operation when the domainid is set. When this method is called, the siteid and orgid of the current record should have been set if it is a existing record or a new record. The new record will always have the site or org id set and won't be allowed to change after it is set. So, it will be save to assume the site and org id obtained at this time won't change for this record.
        Overrides:
        setDomainId in class ALNDomain
      • chooseActualDomainValues

        public void chooseActualDomainValues()
                                      throws MXException,
                                             java.rmi.RemoteException
        overrides ALNDomain.chooseActualDomainValues() which does not allow a null domainid.
        Overrides:
        chooseActualDomainValues in class ALNDomain
        Throws:
        MXException
        java.rmi.RemoteException