psdi.app.measurement

Class MeasurementSet

    • Constructor Detail

      • MeasurementSet

        public MeasurementSet(MboServerInterface ms)
                       throws MXException,
                              java.rmi.RemoteException
        Construct the set.
        Parameters:
        ms - The MboServerInterface for MeasurementSet.
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • getMboInstance

        protected Mbo getMboInstance(MboSet ms)
                              throws MXException,
                                     java.rmi.RemoteException
        Generate a new measurement object.
        Specified by:
        getMboInstance in class MboSet
        Parameters:
        ms - the MeasurementSet.
        Returns:
        a new measurement Mbo object.
        Throws:
        MXException
        java.rmi.RemoteException
      • setLimit

        public void setLimit(int type)
                      throws MXException,
                             java.rmi.RemoteException
        Sets the userpref limit setting.
        Specified by:
        setLimit in interface MeasurementSetRemote
        Parameters:
        type - The type of limit for userpref setting 0 - ALL 1 - Warning 2 - Action
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        psdi.app.measurement.measurementSet#setLimit(int type)
      • getLimit

        public int getLimit()
                     throws MXException,
                            java.rmi.RemoteException
        Gets the type of limit setting, set by the user.
        Specified by:
        getLimit in interface MeasurementSetRemote
        Returns:
        The userpref setting for limit(all, warning, action).
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        psdi.app.measurement.measurementSet#getLimit()
      • setPostedBefore

        public void setPostedBefore(java.util.Date beforeDate)
                             throws MXException,
                                    java.rmi.RemoteException
        Sets the userpref posted before date setting.
        Specified by:
        setPostedBefore in interface MeasurementSetRemote
        Parameters:
        date - Before date
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        psdi.app.measurement.measurementSet#setPostedBefore(Date beforeDate)
      • getPostedBefore

        public java.util.Date getPostedBefore()
                                       throws MXException,
                                              java.rmi.RemoteException
        Gets the posted before date, set by the user.
        Specified by:
        getPostedBefore in interface MeasurementSetRemote
        Returns:
        The userpref setting for posted before date.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        psdi.app.measurement.measurementSet#getPostedBefore()
      • setPostedAfter

        public void setPostedAfter(java.util.Date afterDate)
                            throws MXException,
                                   java.rmi.RemoteException
        Sets the userpref posted after date setting.
        Specified by:
        setPostedAfter in interface MeasurementSetRemote
        Parameters:
        date - After date
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        psdi.app.measurement.measurementSet#setPostedAfter(Date afterDate)
      • getPostedAfter

        public java.util.Date getPostedAfter()
                                      throws MXException,
                                             java.rmi.RemoteException
        Gets the posted after date, set by the user.
        Specified by:
        getPostedAfter in interface MeasurementSetRemote
        Returns:
        The userpref setting for posted after date.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        psdi.app.measurement.measurementSet#getPostedAfter()
      • 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
      • getUserPrefWhere

        public java.lang.String getUserPrefWhere()
        Overrides the MboSet getUserPrefWhere() to return a userpref where clause which is appended to th existing whereClause. This is called by the framework to allow any app specific modifications to the whereClause.
        Overrides:
        getUserPrefWhere in class MboSet
        Returns:
        The userpref where clause.