psdi.app.measurement

Class LinearMeasurementWoGenCronTask

  • All Implemented Interfaces:
    CronTask


    public class LinearMeasurementWoGenCronTask
    extends SimpleCronTask
    This is a Cron task that generates work orders from linear asset measurements based on limits established on the corresponding measure point (asset and GAUGE or CHARACTERISTIC meter combination). AUTOMPWOGEN' flag in MAXVARS table for all the sites in the system. It generates the work orders only if the 'AUTOMPWOGEN' flag is set to 'Yes' for a given SITE.
    For each of the MeasurePoints in the set, generateWork() will be called passing "MPWOGENUSECRITERIA" as a parameter. After the work orders are generated, the results are e-mailed to the address specified by the MaxVar 'MPWOGENEMAIL'.
    • Constructor Detail

      • LinearMeasurementWoGenCronTask

        public LinearMeasurementWoGenCronTask()
    • Method Detail

      • getParameters

        public CrontaskParamInfo[] getParameters()
                                          throws MXException,
                                                 java.rmi.RemoteException
        Description copied from interface: CronTask
        This method provides an array of CrontaskParamInfo() object to describe all the parameters of the crontask. Parameter name, default values and the description of the parameter should be set to the CrontaskParamInfo object for each parameter. If default value and description is not set, null will be the values.
        Specified by:
        getParameters in interface CronTask
        Overrides:
        getParameters in class SimpleCronTask
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        CrontaskParamInfo
      • readConfig

        public void readConfig()
                        throws java.rmi.RemoteException,
                               MXException
        Read in the configuration information from mxserver.properties.
        Throws:
        java.rmi.RemoteException
        MXException