psdi.app.meter

Class MeterInGroup

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


    public class MeterInGroup
    extends Mbo
    implements MeterInGroupRemote
    MBO to represent a MeterInGroup. All changes to a meter group actually occur within this object. See MeterInGroup package description for details.

    The key attributes for this object are as follows: GroupName,MeterName.

    The attributes in this object are as follows:

    Attribute NameDescription
    GroupNameIdentifier of the meter group to which this object's MeterName belongs.
    MeterNameIdentifier of the meter name that belongs to the meter group specified by this object's GroupName attribute.
    PropagateMeterGroupModNon-persistent attribute. Used to indicate whether to propagate new MeterInGroup objects to all assets and items associated with it. This attribute is copied from MeterGroup.PropagateMod in the add().
    RolloverDefault rollover value for CONTINUOUS meters in this meter group. This value is the point at which the meter returns to zero. The meter never achieves this value. For example, an odometer that has a rollover point of 1,000,000 miles will only reach 999,999 before it returns to 0. This value can be overriden at the AssetMeter, LocationMeter and PMMeter level after this MeterInGroup's meter group has been applied to an asset, location or PM respectively.
    See Also:
    psdi.app.meter.meter, psdi.app.meter.metergroup
    • Constructor Detail

      • MeterInGroup

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

      • init

        public void init()
                  throws MXException
        sets the read/writeability of this object's Rollover attribute. If the meter type associated with the MBO's MeterName is CONTINUOUS, then Rollover is not READONLY. Otherwise, Rollover is READONLY.
        Overrides:
        init in class Mbo
        Throws:
        MXException
      • setMeterTypeSpecificFlags

        protected void setMeterTypeSpecificFlags()
                                          throws MXException,
                                                 java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Adds a new MeterInGroup object and sets its field defaults.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • save

        public void save()
                  throws java.rmi.RemoteException,
                         MXException
        Description copied from class: Mbo
        Save the object and other linked objects. Subclasses can code their save() logic to include any appropriate updates to other linked objects and call super.save().
        Overrides:
        save in class Mbo
        Throws:
        java.rmi.RemoteException
        MXException