psdi.app.location

Class LocMeterReading

  • All Implemented Interfaces:
    java.rmi.Remote, LocMeterReadingRemote, ReadingRemote, MboConstants, MboRemote, MaxRemoteProxy


    public class LocMeterReading
    extends Reading
    implements LocMeterReadingRemote
    MBO to represent a LocMeterReading. See Location package description for details.

    The key attributes for this object are as follows: SiteId, Location and MeterName.

    The attributes in this object are as follows:

    Attribute NameDescription
    Deltadifference between this MeterReading's Reading and the previous MeterReading's Reading.
    EnterBy, EnterDateName of the user who entered this MeterReading and the date the MeterReading was entered. These default to the system user name and date.
    LocationAsset associated with the meter in this MeterReading.
    GroupNameIdentifier of the meter group from which this meter was copied to this MeterReading.
    InspectorPerson who has provided the meter reading.
    IsModificationADeltaNon-persistent attribute to indicate if the modified reading is a delta.
    ReadingIsDeltaNon-persistent attribute to indicate if the reading is a delta.
    MeasureUnitId unit of measure for this MeterReading. The value defaults to the meter's MeasureUnitId but can then be modified. This attribute pertains only to meters of type CONTINUOUS and GAUGE.
    MeterNameIdentifier of the meter associated with the location in this LocMeterReading.
    MeterReadingIdunique identifier for this MeterReading.
    ModifiedReadingNon-persistent attribute used to record a modification to the reading of an existing MeterReading mbo.
    Observationmeter value for a CHARACTERISTIC meter. Valid values must belong to this MeterReading's meter's domain as defined in the ALNDOMAINVALUE table.
    Readingmeter value for CONTINUOUS and GAUGE meters.
    ReadingDatedate of the meter reading. This cannot be a future date.
    ReadingTypeindicates whether the meter reading is being entered as a DELTA from the previous reading or as an ACTUAL. These valid values are in the READINGTYPE value list.
    Rollover Rollover value for this MeterReading. If this MeterReading has been created when applying a meter group to this asset, the value defaults to the meter group's rollover value but can then be modified.
    See Also:
    psdi.app.meter.metergroup, psdi.app.meter.meteringroup
    • Constructor Detail

      • LocMeterReading

        public LocMeterReading(MboSet ms)
                        throws MXException,
                               java.rmi.RemoteException
        Construct the MeterReading object
        Parameters:
        ms - Mbo set
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • save

        public void save()
                  throws MXException,
                         java.rmi.RemoteException
        saves new and modified MeterReading objects. If the MeterReading object being saved is a modified reading, then this method also begins the rolldown and/or roll forward by getting the LocationMeter object for this MeterReading and setting the LocationMeter.NewReading attribute.
        Overrides:
        save in class Reading
        Throws:
        MXException
        java.rmi.RemoteException