com.ibm.tivoli.maximo.weather.app

Class WeatherAlertImpact

  • java.lang.Object
    • psdi.mbo.Mbo
      • com.ibm.tivoli.maximo.weather.app.WeatherAlertImpact
    • Constructor Detail

      • WeatherAlertImpact

        public WeatherAlertImpact(MboSet ms)
                           throws MXException,
                                  java.rmi.RemoteException
        Constructor
        Parameters:
        ms - The OslcErrorMap MboSet.
        Throws:
        MXException - Maximo Exception
        java.rmi.RemoteException - Remote Exception
    • Method Detail

      • 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
        Description copied from class: Mbo
        This is called when a new Mbo is added to the Mboset collection. It is called AFTER user defaults have been set from the data dictionary. Programmer should usually override this to set some defaults. Default behavior is to do nothing.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • getLatitudeY

        public java.lang.Double getLatitudeY()
                                      throws MXException,
                                             java.rmi.RemoteException
        Description copied from interface: GISable
        Return a double value with the the Latitude (or Y) coordinate of the current entitty.
        Specified by:
        getLatitudeY in interface GISable
        Returns:
        Double or null
        Throws:
        MXException
        java.rmi.RemoteException
      • getLongitudeX

        public java.lang.Double getLongitudeX()
                                       throws MXException,
                                              java.rmi.RemoteException
        Description copied from interface: GISable
        Return a double value with the the Longitude (or X) coordinate of the current entitty.
        Specified by:
        getLongitudeX in interface GISable
        Returns:
        Double or null
        Throws:
        MXException
        java.rmi.RemoteException
      • getAddressString

        public java.lang.String getAddressString()
                                          throws MXException,
                                                 java.rmi.RemoteException
        Description copied from interface: GISable
        Return a string with the address of the current entitty.
        Specified by:
        getAddressString in interface GISable
        Returns:
        Double or null
        Throws:
        MXException
        java.rmi.RemoteException
      • isGISDataReadonly

        public boolean isGISDataReadonly()
                                  throws MXException,
                                         java.rmi.RemoteException
        Description copied from interface: GISable
        Indicate if the current GIS entity is editable or not. Usefull when the coordinates are populated using an external system.
        Specified by:
        isGISDataReadonly in interface GISable
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • saveGISData

        public void saveGISData(java.lang.String address,
                                java.lang.String lat,
                                java.lang.String lng)
                         throws MXException,
                                java.rmi.RemoteException
        Description copied from interface: GISable
        Implement the logic to save the GIS Data
        Specified by:
        saveGISData in interface GISable
        Throws:
        MXException
        java.rmi.RemoteException
      • hasCoords

        public java.lang.Boolean hasCoords()
                                    throws MXException,
                                           java.rmi.RemoteException
        Description copied from interface: GISable
        Check if this autolocatable object has coordinates filled (LAT,LONG)
        Specified by:
        hasCoords in interface GISable
        Returns:
        the boolean
        Throws:
        MXException - the mX exception
        java.rmi.RemoteException - the remote exception
      • getAltitude

        public java.lang.Double getAltitude()
                                     throws MXException,
                                            java.rmi.RemoteException
        Specified by:
        getAltitude in interface LBS
        Throws:
        MXException
        java.rmi.RemoteException
      • getHeading

        public java.lang.Double getHeading()
                                    throws MXException,
                                           java.rmi.RemoteException
        Specified by:
        getHeading in interface LBS
        Throws:
        MXException
        java.rmi.RemoteException
      • getSpeed

        public java.lang.Double getSpeed()
                                  throws MXException,
                                         java.rmi.RemoteException
        Specified by:
        getSpeed in interface LBS
        Throws:
        MXException
        java.rmi.RemoteException
      • getLastUpdate

        public java.util.Date getLastUpdate()
                                     throws MXException,
                                            java.rmi.RemoteException
        Specified by:
        getLastUpdate in interface LBS
        Throws:
        MXException
        java.rmi.RemoteException
      • saveLBSData

        public void saveLBSData(java.lang.Double lat,
                                java.lang.Double lng,
                                java.lang.Double locationAccuracy,
                                java.lang.Double altitudeAccuracy,
                                java.lang.Double altitude,
                                java.lang.Double heading,
                                java.lang.Double speed)
                         throws MXException,
                                java.rmi.RemoteException
        Specified by:
        saveLBSData in interface LBS
        Throws:
        MXException
        java.rmi.RemoteException
      • getWeatherZone

        protected MboRemote getWeatherZone()
                                    throws java.rmi.RemoteException,
                                           MXException
        Retrieves a Weather Zone for the Alert Impact object.
        Returns:
        Throws:
        java.rmi.RemoteException
        MXException