Package org.netxms.client.objects
Class Room
- All Implemented Interfaces:
AutoBindObject,PollingTarget
Room object - physical room with floor plan where racks are placed at their real location. All coordinates and dimensions are
in millimetres in room-local coordinates unless stated otherwise.
-
Field Summary
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, webServiceProxyIdFields inherited from class org.netxms.client.objects.AbstractObject
accessList, aiHint, 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, isHidden, maintenanceInitiatorId, maintenanceScheduled, mapImage, MARKDOWN_COMMENTS_INDICATOR, moduleData, nameOnMap, NETWORK, NETWORKMAPROOT, OBJECT_ACCESSPOINT, OBJECT_ASSET, OBJECT_ASSETGROUP, OBJECT_ASSETROOT, OBJECT_BUSINESSSERVICE, OBJECT_BUSINESSSERVICEPROTOTYPE, OBJECT_BUSINESSSERVICEROOT, OBJECT_CHASSIS, OBJECT_CIRCUIT, OBJECT_CLOUDDOMAIN, OBJECT_CLUSTER, OBJECT_COLLECTOR, OBJECT_CONDITION, OBJECT_CONTAINER, OBJECT_COOLINGZONE, OBJECT_CUSTOM, OBJECT_DASHBOARD, OBJECT_DASHBOARDGROUP, OBJECT_DASHBOARDROOT, OBJECT_DASHBOARDTEMPLATE, OBJECT_FACILITY, OBJECT_GENERIC, OBJECT_INTERFACE, OBJECT_MOBILEDEVICE, OBJECT_NETWORK, OBJECT_NETWORKMAP, OBJECT_NETWORKMAPGROUP, OBJECT_NETWORKMAPROOT, OBJECT_NETWORKSERVICE, OBJECT_NODE, OBJECT_OBSERVATIONPOINT, OBJECT_POWERDOMAIN, OBJECT_RACK, OBJECT_RESOURCE, OBJECT_ROOM, OBJECT_SENSOR, OBJECT_SERVICEROOT, OBJECT_SUBNET, OBJECT_TEMPLATE, OBJECT_TEMPLATEGROUP, OBJECT_TEMPLATEROOT, OBJECT_TRAFFICOBSERVER, OBJECT_VPNCONNECTOR, OBJECT_WIRELESSDOMAIN, OBJECT_ZONE, objectClass, objectId, objectName, parents, partialObject, pollStates, portStopList, postalAddress, primaryZoneProxyId, PROPAGATE_DEFAULT, PROPAGATE_FIXED, PROPAGATE_RELATIVE, PROPAGATE_TRANSLATED, PROPAGATE_UNCHANGED, responsibleUsers, SERVICEROOT, session, status, statusCalculationMethod, statusPropagationMethod, statusShift, statusSingleThreshold, statusThresholds, statusTransformation, TEMPLATEROOT, timeZone, timeZoneRule, timeZoneSourceObjectId, trustedObjects, UNKNOWN, urls, ZONE0Fields inherited from interface org.netxms.client.objects.interfaces.AutoBindObject
OBJECT_BIND_FLAG, OBJECT_UNBIND_FLAG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublegetArea()Get floor area in square metres (calculated by server from room outline).Get image library UUID of floor plan backdrop.intGet backdrop calibration.intintintintintGet floor tile size.intGet room height.Get name of NetXMS object's class.Get room outline as ordered list of polygon vertices.Get passive elements placed on floor plan.getRacks()Get racks located in this room.Get room type.outlineFromArray(int[] values) Convert array of interleaved x,y values (as used in NXCP messages) to list of points.static int[]outlineToArray(List<RoomPoint> points) Convert list of points to array of interleaved x,y values (as used in NXCP messages).Methods inherited from class org.netxms.client.objects.DataCollectionContainer
canHaveAgent, canHaveInterfaces, canHavePollerNode, canUseEtherNetIP, canUseModbus, getAgentCacheMode, getAutoBindFilter, getAutoBindFlags, getFlags, getIfXTablePolicy, getPollerNodeId, getPollStates, getStrings, isAlarmsVisible, isAllowedOnMap, isAutoBindEnabled, isAutoUnbindEnabledMethods inherited from class org.netxms.client.objects.DataCollectionTarget
getGeoAreas, getGeoLocationControlMode, getNumDataCollectionItems, getOverviewDciData, getTooltipDciData, getWebServiceProxyId, isEventSource, isLocationChageEventGeneratedMethods inherited from class org.netxms.client.objects.AbstractObject
addString, areChildrenSynchronized, getAccessList, getAiHint, getAlias, getAllChildren, getAllChildren, getAllParents, getAllParents, getAssetId, getBackupZoneProxyId, getCategory, getCategoryId, getChildCount, getChildIdList, getChildren, getChildrenAsArray, getComments, getCommentsSource, getConfiguredNameOnMap, getCreationTime, getCustomAttribute, getCustomAttributes, getCustomAttributeValue, getCustomAttributeValueAsBoolean, getDashboardIdentifiers, getDashboards, getDrillDownObjectId, getEffectiveRights, getFixedPropagatedStatus, getGeolocation, getGuid, getIcon, getMaintenanceInitiatorId, getMapImage, getModuleData, getNameOnMap, getNameWithAlias, getNetworkMaps, getObjectClass, getObjectId, getObjectName, getObjectNameWithPath, getParentChain, getParentCount, getParentIdList, getParents, getParentsAsArray, getPortStopList, getPostalAddress, getPrimaryZoneProxyId, getResponsibleUsers, getStatus, getStatusCalculationMethod, getStatusPropagationMethod, getStatusShift, getStatusSingleThreshold, getStatusThresholds, getStatusTransformation, getTimeZone, getTimeZoneRule, getTimeZoneSourceObjectId, getTrustedObjects, getUrls, hasAccessibleChildren, hasAccessibleParents, hasAccessibleViewParents, hasChildren, hasCustomAttribute, hasDashboard, hashCode, hasNetworkMap, hasParents, hasUrls, isChildOf, isChildOf, isDefaultImage, isDeleted, isDirectChildOf, isDirectParentOf, isHidden, isInheritAccessRights, isInMaintenanceMode, isMaintenanceScheduled, isParentOf, isParentOf, isPartialObject, isTimeZoneInherited, setSessionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.netxms.client.objects.interfaces.PollingTarget
getObjectId, getObjectName
-
Constructor Details
-
Room
Create from NXCP message.- Parameters:
msg- NXCP messagesession- owning client session
-
-
Method Details
-
outlineFromArray
Convert array of interleaved x,y values (as used in NXCP messages) to list of points.- Parameters:
values- interleaved x,y values (can be null)- Returns:
- list of points
-
outlineToArray
Convert list of points to array of interleaved x,y values (as used in NXCP messages).- Parameters:
points- list of points- Returns:
- interleaved x,y values
-
getObjectClassName
Description copied from class:AbstractObjectGet name of NetXMS object's class.- Overrides:
getObjectClassNamein classAbstractObject- Returns:
- Name of NetXMS object's class
- See Also:
-
getRacks
Get racks located in this room.- Returns:
- list of racks located in this room
-
getRoomType
Get room type.- Returns:
- room type
-
getOutline
Get room outline as ordered list of polygon vertices.- Returns:
- room outline
-
getArea
public double getArea()Get floor area in square metres (calculated by server from room outline).- Returns:
- floor area in square metres
-
getHeight
public int getHeight()Get room height.- Returns:
- room height in millimetres or 0 if undeclared
-
getGridOriginX
public int getGridOriginX()- Returns:
- X coordinate of floor tile grid origin
-
getGridOriginY
public int getGridOriginY()- Returns:
- Y coordinate of floor tile grid origin
-
getGridTileSize
public int getGridTileSize()Get floor tile size.- Returns:
- floor tile size in millimetres or 0 if there is no tile grid
-
getGridLabels
- Returns:
- floor tile label scheme
-
getBackgroundImage
Get image library UUID of floor plan backdrop.- Returns:
- image library UUID of floor plan backdrop or null if not set
-
getBackgroundScale
public int getBackgroundScale()Get backdrop calibration.- Returns:
- backdrop scale in micrometres per image pixel
-
getBackgroundX
public int getBackgroundX()- Returns:
- X offset of the backdrop in room coordinates
-
getBackgroundY
public int getBackgroundY()- Returns:
- Y offset of the backdrop in room coordinates
-
getPassiveElements
Get passive elements placed on floor plan.- Returns:
- list of passive elements
-