e4f9a518ed8a169b3597985ce883cbfad7853fcb
2 * NetXMS - open source network management system
3 * Copyright (C) 2003-2011 Victor Kirhenshtein
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 package org
.netxms
.client
.objects
;
21 import java
.net
.InetAddress
;
22 import org
.netxms
.base
.*;
23 import org
.netxms
.client
.NXCSession
;
29 public class Subnet
extends GenericObject
31 private InetAddress subnetMask
;
37 public Subnet(NXCPMessage msg
, NXCSession session
)
41 subnetMask
= msg
.getVariableAsInetAddress(NXCPCodes
.VID_IP_NETMASK
);
42 zoneId
= msg
.getVariableAsInt64(NXCPCodes
.VID_ZONE_ID
);
49 public InetAddress
getSubnetMask()
56 * @see org.netxms.client.NXCObject#getObjectClassName()
59 public String
getObjectClassName()
68 public long getZoneId()