psdi.plusc.app.pluscds

Class PlusCDSInstr

  • java.lang.Object
    • Field Detail

      • instrTolsList

        public java.util.ArrayList instrTolsList
        The instr tols list.
      • FULL_INSTR_TOLS_LIST

        public static final java.util.ArrayList FULL_INSTR_TOLS_LIST
        The Constant FULL_INSTR_TOLS_LIST.
      • sharedReadOnly

        public java.lang.String[] sharedReadOnly
        The shared read only.
      • uncertaintyHeader

        public java.lang.String[] uncertaintyHeader
        The uncertainty header.
    • Constructor Detail

      • PlusCDSInstr

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

      • validateInstrAsManual

        public void validateInstrAsManual()
                                   throws java.rmi.RemoteException,
                                          MXException
        Validates if the Instrument has to be reset as Manual. Specially usefull when saving our initializing the Mbo.
        Specified by:
        validateInstrAsManual in interface PlusCDSInstrRemote
        Throws:
        java.rmi.RemoteException - the remote exception
        MXException - the mX exception
      • setInstrFlagsAsManual

        public void setInstrFlagsAsManual(boolean flag)
                                   throws java.rmi.RemoteException,
                                          MXException
        Set the Flags for the Instrument when it is a manual one.
        Specified by:
        setInstrFlagsAsManual in interface PlusCDSInstrRemote
        Parameters:
        flag - the new instr flags as manual
        Throws:
        java.rmi.RemoteException - the remote exception
        MXException - the mX exception
      • setInstrTolerancesFlags

        public void setInstrTolerancesFlags(MboRemote mboRemote,
                                            boolean summed,
                                            boolean single,
                                            boolean flag,
                                            boolean forNonLinear)
                                     throws java.rmi.RemoteException
        Set Instr tolerances as readonly Issue 07-23017 - this method was changed in order to support callings from field classes (i.e. PlusCFldToleranceUpdate, PlusCFldDSInternationalization) and from Data Sheet's mbos as well.
        Specified by:
        setInstrTolerancesFlags in interface PlusCDSInstrRemote
        Parameters:
        mboRemote - the mbo remote
        summed - the summed
        single - the single
        flag - the flag
        forNonLinear - the for non linear
        Throws:
        java.rmi.RemoteException - the remote exception
      • setByInstrType

        public void setByInstrType(MboRemote mboRemote)
                            throws java.rmi.RemoteException,
                                   MXException
        Issue 08-17245.
        Specified by:
        setByInstrType in interface PlusCDSInstrRemote
        Parameters:
        mboRemote - the new by instr type
        Throws:
        java.rmi.RemoteException - the remote exception
        MXException - the mX exception
      • setFlagsByPointsType

        public void setFlagsByPointsType(MboRemote mboRemote,
                                         boolean flag)
                                  throws java.rmi.RemoteException
        Issue 08-17245.
        Specified by:
        setFlagsByPointsType in interface PlusCDSInstrRemote
        Parameters:
        mboRemote - the mbo remote
        flag - the flag
        Throws:
        java.rmi.RemoteException - the remote exception
      • setBlankByPointsType

        public void setBlankByPointsType(MboRemote mboRemote)
                                  throws java.rmi.RemoteException,
                                         MXException
        Issue 08-17303.
        Specified by:
        setBlankByPointsType in interface PlusCDSInstrRemote
        Parameters:
        mboRemote - the new blank by points type
        Throws:
        java.rmi.RemoteException - the remote exception
        MXException - the mX exception
      • setBlankInstrTolerances

        public void setBlankInstrTolerances(MboRemote mboRemote,
                                            boolean summed,
                                            boolean single,
                                            boolean forNonLinear)
                                     throws java.rmi.RemoteException,
                                            MXException
        Issue 08-17303.
        Specified by:
        setBlankInstrTolerances in interface PlusCDSInstrRemote
        Parameters:
        mboRemote - the mbo remote
        summed - the summed
        single - the single
        forNonLinear - the for non linear
        Throws:
        java.rmi.RemoteException - the remote exception
        MXException - the mX exception
      • isAllBlankByPointsType

        public boolean isAllBlankByPointsType(MboRemote mboRemote)
                                       throws java.rmi.RemoteException,
                                              MXException
        Issue 08-17303.
        Specified by:
        isAllBlankByPointsType in interface PlusCDSInstrRemote
        Parameters:
        mboRemote - the mbo remote
        Returns:
        true, if is all blank by points type
        Throws:
        java.rmi.RemoteException - the remote exception
        MXException - the mX exception
      • isAllBlankInstrTolerances

        public boolean isAllBlankInstrTolerances(MboRemote mboRemote,
                                                 boolean summed,
                                                 boolean single,
                                                 boolean forNonLinear)
                                          throws java.rmi.RemoteException,
                                                 MXException
        Issue 08-17303.
        Specified by:
        isAllBlankInstrTolerances in interface PlusCDSInstrRemote
        Parameters:
        mboRemote - the mbo remote
        summed - the summed
        single - the single
        forNonLinear - the for non linear
        Returns:
        true, if is all blank instr tolerances
        Throws:
        java.rmi.RemoteException - the remote exception
        MXException - the mX exception
      • setFlagsByInstrType

        public void setFlagsByInstrType(MboRemote mboRemote,
                                        boolean flag,
                                        boolean flagP)
                                 throws java.rmi.RemoteException
        Issue 08-17245.
        Specified by:
        setFlagsByInstrType in interface PlusCDSInstrRemote
        Parameters:
        mboRemote - the mbo remote
        flag - the flag
        flagP - the flag p
        Throws:
        java.rmi.RemoteException - the remote exception
      • getInstrTolsList

        public java.util.ArrayList getInstrTolsList(boolean summed,
                                                    boolean single,
                                                    boolean forNonLinear)
                                             throws java.rmi.RemoteException,
                                                    MXException
        Gets the instrTolsList ArrayList considering validations against the Tolerances's types (i.e.summed/single) and Instrument NonLinear Set Issue 07-23017
        Parameters:
        summed - the summed
        single - the single
        forNonLinear - the for non linear
        Returns:
        the instr tols list
        Throws:
        java.rmi.RemoteException - the remote exception
        MXException - the mX exception
      • getFullInstrTolsList

        public static java.util.ArrayList getFullInstrTolsList()
        Gets the full instrTolsList ArrayList without to take Tolerances' or Instrument's types into account. Issue 07-23017
        Returns:
        the full instr tols list
      • save

        protected void save()
                     throws MXException,
                            java.rmi.RemoteException
        Method was override because of the issue 07-21773.
        Overrides:
        save in class Mbo
        Throws:
        MXException - the mX exception
        java.rmi.RemoteException - the remote exception
      • setInstrAsNonLinear

        public void setInstrAsNonLinear(boolean flag)
                                 throws java.rmi.RemoteException,
                                        MXException
        Non-Linear Instruments - Issue # 14594, 93937 Issue 07-21909.
        Specified by:
        setInstrAsNonLinear in interface PlusCDSInstrRemote
        Parameters:
        flag - the new instr as non linear
        Throws:
        java.rmi.RemoteException - the remote exception
        MXException - the mX exception
      • validateInstrAsNonLinear

        public void validateInstrAsNonLinear()
                                      throws java.rmi.RemoteException,
                                             MXException
        Non-Linear Instruments - Issue # 14594, 93937 Issue 07-21909 Validates if the Instrument has to be reset as Non Linear. Specially usefull when saving our initializing the Mbo.
        Specified by:
        validateInstrAsNonLinear in interface PlusCDSInstrRemote
        Throws:
        java.rmi.RemoteException - the remote exception
        MXException - the mX exception
      • setInstrAsRepeatable

        public void setInstrAsRepeatable(boolean repeatable)
                                  throws java.rmi.RemoteException,
                                         MXException
        Description copied from interface: PlusCDSInstrRemote
        Sets the instr as repeatable.
        Specified by:
        setInstrAsRepeatable in interface PlusCDSInstrRemote
        Parameters:
        repeatable - the new instr as repeatable
        Throws:
        java.rmi.RemoteException - the remote exception
        MXException - the mX exception
      • 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
      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Adds a new MBO to set.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException - the mX exception
        java.rmi.RemoteException - the remote exception
      • canDelete

        public void canDelete()
                       throws MXException,
                              java.rmi.RemoteException
        Check if a MBO is able to be deleted.
        Overrides:
        canDelete in class Mbo
        Throws:
        MXException - the mX exception
        java.rmi.RemoteException - the remote exception
      • 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
      • 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
      • getRecordType

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

        public void copyAttributesValues(MboRemote mbo,
                                         MboSetRemote mboset,
                                         long mboAddFlags)
                                  throws MXException,
                                         java.rmi.RemoteException
        Copies the information for each of the fields into the new mbo from this.
        Specified by:
        copyAttributesValues in interface PlusCDSInstrRemote
        Parameters:
        mbo - The newly created mbo which copies the values of this mbo
        mboset - The set into which the new mbo will be added.
        mboAddFlags - Flags to use when adding the new Mbo.
        Throws:
        MXException - the mX exception
        java.rmi.RemoteException - the remote exception