psdi.plusc.app.pluscds

Class PlusCFldToleranceUpdate

    • Field Detail

      • NOVALIDATIONORACTION

        public static final long NOVALIDATIONORACTION
        The Constant NOVALIDATIONORACTION.
        See Also:
        Constant Field Values
      • MAXFRACTION

        public static final int MAXFRACTION
        The Constant MAXFRACTION.
        See Also:
        Constant Field Values
    • Constructor Detail

      • PlusCFldToleranceUpdate

        public PlusCFldToleranceUpdate(MboValue mbv)
        Instantiates a new plus c fld tolerance update.
        Parameters:
        mbv - the mbv
    • Method Detail

      • setSquaredFieldFlags

        public void setSquaredFieldFlags(MboRemote mboRemote)
                                  throws java.rmi.RemoteException
        Issue 07-21305 Set field flags when squared is checked.
        Parameters:
        mboRemote - the new squared field flags
        Throws:
        java.rmi.RemoteException - the remote exception
      • getDSConfig

        public java.util.HashMap getDSConfig()
        Gets the configuration set for the current Data Sheet. Formula Rounding or Truncation - Issue # 06-13862
        Returns:
        the dS config
      • checkInstrTypeSetPermissions

        public void checkInstrTypeSetPermissions(java.lang.String instrType,
                                                 MboRemote mboRemote)
                                          throws java.rmi.RemoteException,
                                                 MXException
        Check if the Instr can be set as desired type values 1- function 2- dynamic 3- calpoint.
        Parameters:
        instrType - the instr type
        mboRemote - the mbo remote
        Throws:
        java.rmi.RemoteException - the remote exception
        MXException - the mX exception
      • hasPoints

        public boolean hasPoints(MboRemote mboRemote)
                          throws java.rmi.RemoteException,
                                 MXException
        Checks it there is entered calpoints for this asset funcion 1- function 2- dynamic 3- calpoint *.
        Parameters:
        mboRemote - the mbo remote
        Returns:
        true, if successful
        Throws:
        java.rmi.RemoteException - the remote exception
        MXException - the mX exception
      • hasFuncPoints

        public boolean hasFuncPoints(MboRemote mboRemote)
                              throws java.rmi.RemoteException,
                                     MXException
        Returns if the Instr has Functional Points.
        Parameters:
        mboRemote - the mbo remote
        Returns:
        true, if successful
        Throws:
        java.rmi.RemoteException - the remote exception
        MXException - the mX exception
      • hasCalPoints

        public boolean hasCalPoints(MboRemote mboRemote)
                             throws java.rmi.RemoteException,
                                    MXException
        Returns if the Instr has Cal Points.
        Parameters:
        mboRemote - the mbo remote
        Returns:
        true, if successful
        Throws:
        java.rmi.RemoteException - the remote exception
        MXException - the mX exception
      • hasDynamicPoints

        public boolean hasDynamicPoints(MboRemote mboRemote)
                                 throws java.rmi.RemoteException,
                                        MXException
        Returns if the Instr has Dynamic Points.
        Parameters:
        mboRemote - the mbo remote
        Returns:
        true, if successful
        Throws:
        java.rmi.RemoteException - the remote exception
        MXException - the mX exception
      • instrSetAsFunctional

        public boolean instrSetAsFunctional(MboRemote mboRemote)
                                     throws java.rmi.RemoteException,
                                            MXException
        Checks if the instr is set as Functional Functional Checks - Issue #06-18226.
        Parameters:
        mboRemote - the mbo remote
        Returns:
        true, if successful
        Throws:
        java.rmi.RemoteException - the remote exception
        MXException - the mX exception
      • instrSetAsDynamic

        public boolean instrSetAsDynamic(MboRemote mboRemote)
                                  throws java.rmi.RemoteException,
                                         MXException
        Checks if the instr is set as Dynamic Dynamic Checks - Issue # 07-10302.
        Parameters:
        mboRemote - the mbo remote
        Returns:
        true, if successful
        Throws:
        java.rmi.RemoteException - the remote exception
        MXException - the mX exception
      • instrSetAsPoint

        public boolean instrSetAsPoint(MboRemote mboRemote)
                                throws java.rmi.RemoteException,
                                       MXException
        Checks if the instr is set as Point.
        Parameters:
        mboRemote - the mbo remote
        Returns:
        true, if successful
        Throws:
        java.rmi.RemoteException - the remote exception
        MXException - the mX exception
      • setInstrType

        public void setInstrType(MboRemote mboRemote,
                                 boolean flag,
                                 java.lang.String instrType)
                          throws java.rmi.RemoteException,
                                 MXException
        Functional Checks - Issue #06-18226 Dynamic Checks - Issue # 07-10302 1- function 2- dynamic 3- calpoint *.
        Parameters:
        mboRemote - the mbo remote
        flag - the flag
        instrType - the instr type
        Throws:
        java.rmi.RemoteException - the remote exception
        MXException - the mX exception
      • continueInstrTypeChange

        public boolean continueInstrTypeChange(MboRemote mboRemote)
                                        throws java.rmi.RemoteException,
                                               MXException
        Issue 08-17303.
        Parameters:
        mboRemote - the mbo remote
        Returns:
        true, if successful
        Throws:
        java.rmi.RemoteException - the remote exception
        MXException - the mX exception
      • formatTolerancesValues

        public void formatTolerancesValues(MboRemote instr,
                                           int minFraction)
                                    throws java.rmi.RemoteException,
                                           MXException
        Set Tolerances Values based on new input Intrument's tolerances's values Issue 07-23405.
        Parameters:
        instr - the instr
        minFraction - the min fraction
        Throws:
        java.rmi.RemoteException - the remote exception
        MXException - the mX exception
      • action

        public boolean action(boolean bFromValidate)
                       throws MXException,
                              java.rmi.RemoteException
        Action.
        Parameters:
        bFromValidate - the b from validate
        Returns:
        true, if successful
        Throws:
        MXException - the mX exception
        java.rmi.RemoteException - the remote exception
      • doCalculateAveragesAndStdDevs

        protected boolean doCalculateAveragesAndStdDevs(MboRemote mboRemote,
                                                        java.lang.String fieldName)
                                                 throws java.rmi.RemoteException,
                                                        MXException,
                                                        MXApplicationException
        Calculates averages and standard deviations for the given field in the point's group.
        Parameters:
        mboRemote - WO DS point that changed
        fieldName - name of the field that changed
        Returns:
        if the calculation was successful, if there wasn't enough entered data
        Throws:
        java.rmi.RemoteException - the remote exception
        MXException - the mX exception
        MXApplicationException - the mX application exception
      • getMyInstr

        public MboRemote getMyInstr(MboRemote mboRemote)
                             throws MXException,
                                    java.rmi.RemoteException
        Returns the Asset function associated with the current MBO.
        Parameters:
        mboRemote - the current MBO
        Returns:
        a PLUSCDSINSTR or PLUSCWODSINSTR object
        Throws:
        MXException - the mX exception
        java.rmi.RemoteException - the remote exception
      • formatDouble

        public java.lang.String formatDouble(java.lang.String value,
                                             int minFraction,
                                             boolean shouldRound)
                                      throws MXException
        Format double.
        Parameters:
        value - the value
        minFraction - the min fraction
        shouldRound - the should round
        Returns:
        the string
        Throws:
        MXException - the mX exception
      • formatDoubleMax

        protected java.lang.String formatDoubleMax(java.lang.String value,
                                                   int maxFraction)
                                            throws MXApplicationException
        Format double max.
        Parameters:
        value - the value
        maxFraction - the max fraction
        Returns:
        the string
        Throws:
        MXApplicationException - the mX application exception
      • formatDoubleMinMax

        protected java.lang.String formatDoubleMinMax(java.lang.String value,
                                                      int minFraction,
                                                      int maxFraction)
        Format double min max.
        Parameters:
        value - the value
        minFraction - the min fraction
        maxFraction - the max fraction
        Returns:
        the string
      • validateSetPointAdj

        public void validateSetPointAdj(MboRemote mboRemote)
                                 throws java.rmi.RemoteException,
                                        MXException
        Set Point Override for Dead Band Adjustments - Issue # 93937 SETPOINTADJ becomes editable only if Discrete and for the Cal Points 2 or greater.
        Parameters:
        mboRemote - the mbo remote
        Throws:
        java.rmi.RemoteException - the remote exception
        MXException - the mX exception