psdi.plusc.app.pluscds

Class PlusCWODSInstr

  • java.lang.Object
    • Constructor Detail

      • PlusCWODSInstr

        public PlusCWODSInstr(MboSet ms)
                       throws MXException,
                              java.rmi.RemoteException
        Instantiates a new plus cwods instr.
        Parameters:
        ms - the ms
        Throws:
        MXException - the mX exception
        java.rmi.RemoteException - the remote exception
    • Method Detail

      • init

        public void init()
                  throws MXException
        Description copied from class: Mbo
        Called by the framework when the Mbo has been constructed and the MboValues have been initialized. This can be overridden by the programmer to provide any custom initialization they would like to do.
        Overrides:
        init in class Mbo
        Throws:
        MXException
      • save

        public void save()
                  throws MXException,
                         java.rmi.RemoteException
        Issue 08-16263.
        Overrides:
        save in class Mbo
        Throws:
        MXException - the mX exception
        java.rmi.RemoteException - the remote exception
      • checkPointsErrors

        public void checkPointsErrors()
                               throws java.rmi.RemoteException,
                                      MXException
        Issue 08-20452.
        Throws:
        java.rmi.RemoteException - the remote exception
        MXException - the mX exception
      • isValidPoint

        public boolean isValidPoint(MboRemote instrMbo,
                                    MboRemote pointMbo)
                             throws java.rmi.RemoteException,
                                    MXException
        Issue 08-16263.
        Parameters:
        instrMbo - the instr mbo
        pointMbo - the point mbo
        Returns:
        true, if is valid point
        Throws:
        java.rmi.RemoteException - the remote exception
        MXException - the mX exception
      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Description copied from class: Mbo
        This is called when a new Mbo is added to the Mboset collection. It is called AFTER user defaults have been set from the data dictionary. Programmer should usually override this to set some defaults. Default behavior is to do nothing.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • canDelete

        public void canDelete()
                       throws MXException,
                              java.rmi.RemoteException
        Description copied from class: Mbo
        Can the object be deleted ? This is object specific and should be overridden.
        Overrides:
        canDelete in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • delete

        public void delete(long accessModifier)
                    throws MXException,
                           java.rmi.RemoteException
        Description copied from class: Mbo
        Mark the object to be deleted depending on the access modifier. This will usually be overridden in the subclass of Mbo as there may be application specific rules as to if and when an object can be deleted. Object is not actually deleted in the database until save() is called. This method will also mark all associated Long Description and Translation Mbos for deletion.
        Specified by:
        delete in interface MboRemote
        Overrides:
        delete in class Mbo
        Parameters:
        accessModifier - The bitwise flag specified to determine if certain normal security checks are to be bypassed for this delete request. For example: if the accessModifer is NOACCESSCHECK, then the check for the object's NODELETE flag and the call to the object's canDelete() method will not be performed. If the accessModifer is NONE, then all the access checks are performed before this object is marked delete.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        Mbo.delete(long)
      • undelete

        public void undelete()
                      throws MXException,
                             java.rmi.RemoteException
        Description copied from class: Mbo
        Unmark the Mbo for deletion. Can only be called after a delete() and before the save() has been performed. This method will also unmark associated Long Description and Translation Mbos.
        Specified by:
        undelete in interface MboRemote
        Overrides:
        undelete in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • propagateKeyValue

        public void propagateKeyValue(java.lang.String keyName,
                                      java.lang.String keyValue)
                               throws MXException,
                                      java.rmi.RemoteException
        Description copied from class: Mbo
        Method for propagating key value. Provide an implementation of the method only when the parent's key values need to be propagate down to this MBO which is a child of a MBO set obtained through a relationship from the parent, and only when the key attribute of the parent are not one of the key attributes of the child MBO. When overwrite this method, please don't call super().
        Specified by:
        propagateKeyValue in interface MboRemote
        Overrides:
        propagateKeyValue in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • getPointsMboSet

        public MboSetRemote getPointsMboSet(int calPointType)
                                     throws java.rmi.RemoteException,
                                            MXException
        Description copied from interface: PlusCWODSInstrRemote
        Returns a MBO Set containing calibration points for this asset function. The calPointType parameter determines which cal points will be included in the MBO Set. It can be any combination of the following constants:
        • NON_REPEATABLE_CAL_POINTS: only cal points that are not repeatable. Since the repeatability is an attribute of the asset function, the set will contain either all of this asset function's points or none of them if this flag is passed alone.
        • REPEATABLE_NON_AVG_CAL_POINTS: only cal points that are part of a repetition set, excluding the point that contains averages and std deviations.
        • REPEATABLE_AVG_CAL_POINTS: only points that contain averages and std deviations, in a repeatable asset function.
        The following convenience constants are also defined:
        • ALL_CAL_POINTS: include all types of cal points.
        • EDITABLE_CAL_POINTS: include only cal points for which as found/as left values can be entered (non-repeatable points or repeatable points that are not averages)
        • STATUSABLE_CAL_POINTS: include only cal points for which errors and statuses are defined (non-repeatable points or repeatable points that contain averages)
        Specified by:
        getPointsMboSet in interface PlusCWODSInstrRemote
        Parameters:
        calPointType - types of cal points to be included in the set
        Returns:
        MboSetRemote with the desired points
        Throws:
        java.rmi.RemoteException - the remote exception
        MXException - the mX exception
      • getRecordType

        protected java.lang.String getRecordType()
        Overrides:
        getRecordType in class Mbo
      • appValidate

        public void appValidate()
                         throws MXException,
                                java.rmi.RemoteException
        Description copied from class: Mbo
        Pre-save validation method. Programmer can override with specific rules.
        Overrides:
        appValidate in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException