Package org.netxms.client.objects
Class Sensor
java.lang.Object
org.netxms.client.objects.AbstractObject
org.netxms.client.objects.GenericObject
org.netxms.client.objects.DataCollectionTarget
org.netxms.client.objects.Sensor
- All Implemented Interfaces:
PollingTarget
Mobile device object
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final String[]
static final String[]
Sensor device class namesprotected MacAddress
static final int
static final int
Sensor device classstatic final int
static final int
static final int
Sensor communication protocol typestatic final int
Sensor flagsstatic final int
static final int
static final int
Fields inherited from class org.netxms.client.objects.DataCollectionTarget
DCF_DISABLE_CONF_POLL, DCF_DISABLE_DATA_COLLECT, DCF_DISABLE_STATUS_POLL, DCF_LOCATION_CHANGE_EVENT, DCSF_NETWORK_PATH_PROBLEM, DCSF_UNREACHABLE, geoAreas, geoLocationControlMode, numDataCollectionItems, overviewDciData, tooltipDciData, webServiceProxyId
Fields inherited from class org.netxms.client.objects.AbstractObject
accessList, alias, assetId, ASSETS, backupZoneProxyId, BUSINESSSERVICEROOT, CALCULATE_DEFAULT, CALCULATE_MOST_CRITICAL, CALCULATE_MULTIPLE_THRESHOLDS, CALCULATE_SINGLE_THRESHOLD, categoryId, children, comments, commentsSource, CONTEXT, creationTime, customAttributes, DASHBOARDROOT, dashboards, drillDownObjectId, fixedPropagatedStatus, flags, geolocation, guid, inheritAccessRights, inMaintenanceMode, isDeleted, maintenanceInitiatorId, mapImage, moduleData, nameOnMap, NETWORK, NETWORKMAPROOT, OBJECT_ACCESSPOINT, OBJECT_ASSET, OBJECT_ASSETGROUP, OBJECT_ASSETROOT, OBJECT_BUSINESSSERVICE, OBJECT_BUSINESSSERVICEPROTOTYPE, OBJECT_BUSINESSSERVICEROOT, OBJECT_CHASSIS, OBJECT_CLUSTER, OBJECT_CONDITION, OBJECT_CONTAINER, OBJECT_CUSTOM, OBJECT_DASHBOARD, OBJECT_DASHBOARDGROUP, OBJECT_DASHBOARDROOT, OBJECT_GENERIC, OBJECT_INTERFACE, OBJECT_MOBILEDEVICE, OBJECT_NETWORK, OBJECT_NETWORKMAP, OBJECT_NETWORKMAPGROUP, OBJECT_NETWORKMAPROOT, OBJECT_NETWORKSERVICE, OBJECT_NODE, OBJECT_RACK, OBJECT_SENSOR, OBJECT_SERVICEROOT, OBJECT_SUBNET, OBJECT_TEMPLATE, OBJECT_TEMPLATEGROUP, OBJECT_TEMPLATEROOT, OBJECT_VPNCONNECTOR, OBJECT_ZONE, objectClass, objectId, objectName, parents, pollStates, postalAddress, primaryZoneProxyId, PROPAGATE_DEFAULT, PROPAGATE_FIXED, PROPAGATE_RELATIVE, PROPAGATE_TRANSLATED, PROPAGATE_UNCHANGED, responsibleUsers, SERVICEROOT, session, status, statusCalculationMethod, statusPropagationMethod, statusShift, statusSingleThreshold, statusThresholds, statusTransformation, TEMPLATEROOT, trustedObjects, urls, ZONE0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Identify if this object can have NetXMS agent.boolean
Identify if this object can have network interfaces.boolean
Identify if this object can have poller node property.boolean
Identify if this object can use EtherNet/IP for communications.boolean
Identify if this object can use Modbus for communications.Get agent cache mode.int
int
int
getFlags()
Get object flags.int
int
int
Get ifXTable usage policy.Get name of NetXMS object's class.long
Get poller node ID.Get poll states.long
final String
int
int
Get all strings in objectfinal String
boolean
If this method returns true object can have visible alarms.boolean
If this method returns true object is allowed to be on custom network map.Methods inherited from class org.netxms.client.objects.DataCollectionTarget
getGeoAreas, getGeoLocationControlMode, getNumDataCollectionItems, getOverviewDciData, getTooltipDciData, getWebServiceProxyId, isLocationChageEventGenerated
Methods inherited from class org.netxms.client.objects.AbstractObject
addString, areChildrenSynchronized, getAccessList, getAlias, getAllChildren, getAllChildren, getAllParents, getAllParents, getAssetId, getBackupZoneProxyId, getCategory, getCategoryId, getChildCount, getChildIdList, getChildren, getChildrenAsArray, getComments, getCommentsSource, getConfiguredNameOnMap, getCreationTime, getCustomAttribute, getCustomAttributes, getCustomAttributeValue, getCustomAttributeValueAsBoolean, getDashboards, getDrillDownObjectId, getEffectiveRights, getFixedPropagatedStatus, getGeolocation, getGuid, getIcon, getMaintenanceInitiatorId, getMapImage, getModuleData, getNameOnMap, getNameWithAlias, getObjectClass, getObjectId, getObjectName, getParentChain, getParentCount, getParentIdList, getParents, getParentsAsArray, getPostalAddress, getPrimaryZoneProxyId, getResponsibleUsers, getStatus, getStatusCalculationMethod, getStatusPropagationMethod, getStatusShift, getStatusSingleThreshold, getStatusThresholds, getStatusTransformation, getTrustedObjects, getUrls, hasAccessibleChildren, hasChildren, hasCustomAttribute, hasDashboard, hashCode, hasParents, hasUrls, isChildOf, isChildOf, isDefaultImage, isDeleted, isDirectChildOf, isDirectParentOf, isInheritAccessRights, isInMaintenanceMode, isParentOf, isParentOf, setSession
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.netxms.client.objects.interfaces.PollingTarget
getObjectId, getObjectName
-
Field Details
-
SENSOR_PROVISIONED
public static final int SENSOR_PROVISIONEDSensor flags- See Also:
-
SENSOR_REGISTERED
public static final int SENSOR_REGISTERED- See Also:
-
SENSOR_ACTIVE
public static final int SENSOR_ACTIVE- See Also:
-
SENSOR_CONF_UPDATE_PENDING
public static final int SENSOR_CONF_UPDATE_PENDING- See Also:
-
SENSOR_PROTO_UNKNOWN
public static final int SENSOR_PROTO_UNKNOWNSensor communication protocol type- See Also:
-
COMM_LORAWAN
public static final int COMM_LORAWAN- See Also:
-
COMM_DLMS
public static final int COMM_DLMS- See Also:
-
COMM_METHOD
-
SENSOR_CLASS_UNKNOWN
public static final int SENSOR_CLASS_UNKNOWNSensor device class- See Also:
-
SENSOR_UPS
public static final int SENSOR_UPS- See Also:
-
SENSOR_WATER_METER
public static final int SENSOR_WATER_METER- See Also:
-
SENSOR_ELECTR_METER
public static final int SENSOR_ELECTR_METER- See Also:
-
DEV_CLASS_NAMES
Sensor device class names -
macAddress
-
-
Constructor Details
-
Sensor
Create from NXCP message.- Parameters:
msg
- NXCP messagesession
- 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 classAbstractObject
- 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 classAbstractObject
- Returns:
- true if object can contain visible alarms
- See Also:
-
getObjectClassName
Description copied from class:AbstractObject
Get name of NetXMS object's class.- Overrides:
getObjectClassName
in classAbstractObject
- Returns:
- Name of NetXMS object's class
- See Also:
-
getStrings
Description copied from class:AbstractObject
Get all strings in object- Overrides:
getStrings
in classAbstractObject
- Returns:
- set of all strings in object
- See Also:
-
getVendor
- Returns:
- the vendor
-
getSerialNumber
- Returns:
- the serialNumber
-
getFlags
public int getFlags()Description copied from interface:PollingTarget
Get object flags.- Specified by:
getFlags
in interfacePollingTarget
- Returns:
- the flags
-
getMacAddress
- Returns:
- the macAddress
-
getFrameCount
public int getFrameCount()- Returns:
- the frameCount
-
getSignalStrenght
public int getSignalStrenght()- Returns:
- the signalStrenght
-
getFrequency
public int getFrequency()- Returns:
- the frequency
-
getDeviceClass
public int getDeviceClass()- Returns:
- the deviceClass
-
getCommProtocol
public int getCommProtocol()- Returns:
- the commProtocol
-
getDeviceAddress
- Returns:
- the deviceAddress
-
getMetaType
- Returns:
- the metaType
-
getDescription
- Returns:
- the description
-
getLastConnectionTime
- Returns:
- the lastConnectionTime
-
getProxyId
public long getProxyId()- Returns:
- the proxyId
-
getSignalNoise
public int getSignalNoise()- Returns:
- the signalNoise
-
getRegConfig
- Returns:
- the regConfig
-
getConfig
- Returns:
- the config
-
getIfXTablePolicy
public int getIfXTablePolicy()Description copied from interface:PollingTarget
Get ifXTable usage policy.- Specified by:
getIfXTablePolicy
in interfacePollingTarget
- Returns:
- ifXTable usage policy
-
getAgentCacheMode
Description copied from interface:PollingTarget
Get agent cache mode.- Specified by:
getAgentCacheMode
in interfacePollingTarget
- Returns:
- agent cache mode
- See Also:
-
getPollerNodeId
public long getPollerNodeId()Description copied from interface:PollingTarget
Get poller node ID.- Specified by:
getPollerNodeId
in interfacePollingTarget
- Returns:
- poller node ID or 0 if object cannot have poler node
- See Also:
-
canHaveAgent
public boolean canHaveAgent()Description copied from interface:PollingTarget
Identify if this object can have NetXMS agent.- Specified by:
canHaveAgent
in interfacePollingTarget
- Returns:
- true if this object can have NetXMS agent
- See Also:
-
canHaveInterfaces
public boolean canHaveInterfaces()Description copied from interface:PollingTarget
Identify if this object can have network interfaces.- Specified by:
canHaveInterfaces
in interfacePollingTarget
- Returns:
- true if this object can have network interfaces
- See Also:
-
canHavePollerNode
public boolean canHavePollerNode()Description copied from interface:PollingTarget
Identify if this object can have poller node property.- Specified by:
canHavePollerNode
in interfacePollingTarget
- Returns:
- true if this object can have poller node property
- See Also:
-
canUseEtherNetIP
public boolean canUseEtherNetIP()Description copied from interface:PollingTarget
Identify if this object can use EtherNet/IP for communications.- Specified by:
canUseEtherNetIP
in interfacePollingTarget
- Returns:
- true if this object can use EtherNet/IP for communications
- See Also:
-
canUseModbus
public boolean canUseModbus()Description copied from interface:PollingTarget
Identify if this object can use Modbus for communications.- Specified by:
canUseModbus
in interfacePollingTarget
- Returns:
- true if this object can use Modbus for communications
- See Also:
-
getPollStates
Description copied from interface:PollingTarget
Get poll states.- Specified by:
getPollStates
in interfacePollingTarget
- Returns:
- array of poll states or null if object doesn't have any
- See Also:
-