psdi.app.measurement

Class CharPointAction

  • java.lang.Object
  • All Implemented Interfaces:
    java.rmi.Remote, CharPointActionRemote, MboConstants, MboRemote, MaxRemoteProxy


    public class CharPointAction
    extends Mbo
    implements CharPointActionRemote
    MBO object to represent a CharPointAction.

    See Measurement Package description.

    The key attribute for this object are: PointNum,Value,SiteId

    The attributes in this object are as follows:

    Attribute NameDescription
    DomainIdnon-persistent attribute identifying the domain of valid values.
    JpNumJob Plan to be used to generate a work order for the Value.
    OrgIdOrganization Identifier.
    PmNumPM to be used to generate a work order for the Value.
    PointNumIdentifier of the measurement point associated with this Value and PmNum or JpNum.
    PriorityPriority to be used when a work order is generated.
    SiteIdSite Identifier.
    ValueObservational reading taken on the PointNum's associated MeterName of meter type CHARACTERISTIC.
    • Constructor Detail

      • CharPointAction

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

      • init

        public void init()
                  throws MXException
        Sets the non-persistent attributes AssetNum,Location and DomainId's values, and makes them read-only.
        Overrides:
        init in class Mbo
        Throws:
        MXException
      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        adds a new CharPointAction and sets the values PointNum, AssetNum and Location from the owning MeasurePoint.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • isCharPointActionValueUnique

        protected void isCharPointActionValueUnique()
                                             throws MXException,
                                                    java.rmi.RemoteException
        ensures that a value is added only once to the set of CharPointAction objects. The set against which this component is checked may include other newly added objects that are not yet saved to the database.
        Throws:
        MXException
        java.rmi.RemoteException
      • appValidate

        public void appValidate()
                         throws MXException,
                                java.rmi.RemoteException
        makes sure that a valid job plan or PM has been provided for this new CHARPOINTACTION.
        Overrides:
        appValidate in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException