Class MobileDevice


public class MobileDevice extends DataCollectionTarget
Mobile device object
  • Constructor Details

    • MobileDevice

      public MobileDevice(NXCPMessage msg, NXCSession session)
      Create from NXCP message.
      Parameters:
      msg - NXCP message
      session - owning client session
  • Method Details

    • isAllowedOnMap

      public boolean isAllowedOnMap()
      Description copied from class: AbstractObject
      If this method returns true object is allowed to be on custom network map. Default implementation always returns false.
      Overrides:
      isAllowedOnMap in class AbstractObject
      Returns:
      true if object is allowed to be on custom network map
      See Also:
    • isAlarmsVisible

      public boolean isAlarmsVisible()
      Description copied from class: AbstractObject
      If this method returns true object can have visible alarms. Default implementation always returns false.
      Overrides:
      isAlarmsVisible in class AbstractObject
      Returns:
      true if object can contain visible alarms
      See Also:
    • getDeviceId

      public final String getDeviceId()
      Returns:
      the deviceId
    • getCommProtocol

      public String getCommProtocol()
      Returns:
      the commProtocol
    • getVendor

      public final String getVendor()
      Returns:
      the vendor
    • getModel

      public final String getModel()
      Returns:
      the model
    • getSerialNumber

      public final String getSerialNumber()
      Returns:
      the serialNumber
    • getOsName

      public final String getOsName()
      Returns:
      the osName
    • getOsVersion

      public final String getOsVersion()
      Returns:
      the osVersion
    • getUserId

      public final String getUserId()
      Returns:
      the userId
    • getBatteryLevel

      public final short getBatteryLevel()
      Returns:
      the batteryLevel
    • getSpeed

      public float getSpeed()
      Get last reported speed of the device. Will return -1 if speed is not known.
      Returns:
      last reported speed of the device or -1
    • getDirection

      public short getDirection()
      Get last reported direction of the device (in range 0..360). Will return -1 if direction is not known.
      Returns:
      last reported direction of the device or -1
    • getAltitude

      public int getAltitude()
      Get last reported altitude of the device
      Returns:
      last reported altitude of the device
    • getObjectClassName

      public String getObjectClassName()
      Description copied from class: AbstractObject
      Get name of NetXMS object's class.
      Overrides:
      getObjectClassName in class AbstractObject
      Returns:
      Name of NetXMS object's class
      See Also:
    • getLastReportTime

      public final Date getLastReportTime()
      Returns:
      the lastReportTime
    • getStrings

      public Set<String> getStrings()
      Description copied from class: AbstractObject
      Get all strings in object
      Overrides:
      getStrings in class AbstractObject
      Returns:
      set of all strings in object
      See Also: