psdi.plusc.app.pluscds

Class PlusCWODSPointSet

  • java.lang.Object
    • Field Detail

      • averagesSetOwners

        protected java.util.Map averagesSetOwners
        Map that holds the PLUSCWODSPOINTAVERAGE set owner for each group of repeated calibration points. This set must be unique for each group, so one MBO in the group is elected to hold a reference to it. When this set is requested from another member of the group, the request will be delegated to the set owner. The values are kept with weak references to avoid messing with the garbage collection of MBOs. Key: POINT (String) Value: weak reference to the owner MBO (MboRemote)
    • Constructor Detail

      • PlusCWODSPointSet

        public PlusCWODSPointSet(MboServerInterface ms)
                          throws MXException,
                                 java.rmi.RemoteException
        Instantiates a new plus cwods point set.
        Parameters:
        ms - the ms
        Throws:
        MXException - the mX exception
        java.rmi.RemoteException - the remote exception
    • Method Detail

      • getMboInstance

        protected Mbo getMboInstance(MboSet ms)
                              throws MXException,
                                     java.rmi.RemoteException
        Description copied from class: MboSet
        Factory to create the business objects This must be overridden in derived class
        Specified by:
        getMboInstance in class MboSet
        Throws:
        MXException
        java.rmi.RemoteException
      • canAdd

        public void canAdd()
                    throws MXException
        Description copied from class: MboSet
        Can an object be added to the collection ? This is usually overriden in the specific mboset
        Overrides:
        canAdd in class MboSet
        Throws:
        MXException
      • canAddPoint

        protected boolean canAddPoint(PlusCWODS dsOwner,
                                      PlusCWODSInstr instrOwner,
                                      java.lang.String pointType)
                               throws java.rmi.RemoteException,
                                      MXException
        Returns whether a new point can be added to this MBOSet.
        Parameters:
        dsOwner - datasheet owner
        instrOwner - asset function owner
        pointType - point type
        Returns:
        if a point of the given type ca be added
        Throws:
        java.rmi.RemoteException - the remote exception
        MXException - the mX exception
      • initDataDictionary

        public void initDataDictionary()
        Description copied from class: MboSet
        Perform any initialization on the MboSet's data dictionary. This will be called only once for each type of set, and can be overriden to add addiotnal fields to the object which are not stored in the database. Examples of this may be Current Balance in inventory. Always call super.initDataDictionary() and document the names of the additional attributes in the JavaDocs section of the MboSet class.
        Overrides:
        initDataDictionary in class MboSet
      • setAttrProperty

        public void setAttrProperty(MboValueInfo mvInfo,
                                    MboValueInfo mvInfo1)
        This method is used to set the properties(maxType,Length,Scale) of a MboValueInfo Attribute based on the properties of another MboValueInfo.
        Parameters:
        mvInfo - the mv info
        mvInfo1 - the mv info1
      • getAveragesSetOwner

        public MboRemote getAveragesSetOwner(java.lang.String point)
                                      throws MXException,
                                             java.rmi.RemoteException
        Returns the owner of the Averages set for the group of points whose POINT attribute has the given value.
        Specified by:
        getAveragesSetOwner in interface PlusCWODSPointSetRemote
        Parameters:
        point - the POINT attribute for the point group
        Returns:
        the MboRemote that is the owner of the Averages set
        Throws:
        MXException - the mX exception
        java.rmi.RemoteException - the remote exception
      • getAveragesPoints

        public java.util.List getAveragesPoints()
                                         throws java.rmi.RemoteException,
                                                MXException
        Returns the set of average points associated with the points in this set.
        Returns:
        list of averages points
        Throws:
        java.rmi.RemoteException - the remote exception
        MXException - the mX exception
      • deleteAll

        public void deleteAll(long accessModifier)
                       throws MXException,
                              java.rmi.RemoteException
        Description copied from class: MboSet
        Delete all the objects in the set with the specified access modifiers
        Specified by:
        deleteAll in interface MboSetRemote
        Overrides:
        deleteAll in class MboSet
        Throws:
        MXException
        java.rmi.RemoteException