Package org.netxms.client
Class GeoArea
java.lang.Object
org.netxms.client.GeoArea
Geographical area
-
Field Summary
-
Constructor Summary
ConstructorDescriptionGeoArea
(int id, String name, String comments, List<GeoLocation> border) Create new geographical area object.GeoArea
(NXCPMessage msg, long baseId) Create area object from NXCP message.Copy constructor -
Method Summary
-
Field Details
-
id
protected int id -
name
-
comments
-
border
-
-
Constructor Details
-
GeoArea
Create new geographical area object.- Parameters:
id
- area IDname
- area namecomments
- commentsborder
- border points
-
GeoArea
Create area object from NXCP message.- Parameters:
msg
- NXCP messagebaseId
- base field ID
-
GeoArea
Copy constructor- Parameters:
src
- source object
-
-
Method Details
-
getBoundingBox
Get bounding box for this area. First element of resulting array will contain north-west corner and second element - south-east corner.- Returns:
- bounding box for this area (north-west and south-east corners)
-
getId
public int getId()- Returns:
- the id
-
getName
- Returns:
- the name
-
getComments
- Returns:
- the comments
-
getBorder
- Returns:
- the border
-