bcb00303f31fce1554f1e066a6f3f544bfe956a5
[public/netxms.git] / src / java / netxms-client / src / main / java / org / netxms / client / objects / Rack.java
1 /**
2 * NetXMS - open source network management system
3 * Copyright (C) 2003-2013 Victor Kirhenshtein
4 *
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.
9 *
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.
14 *
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.
18 */
19 package org.netxms.client.objects;
20
21 import org.netxms.base.NXCPCodes;
22 import org.netxms.base.NXCPMessage;
23 import org.netxms.client.NXCSession;
24
25 /**
26 * Rack object
27 */
28 public class Rack extends GenericObject
29 {
30 private int height;
31
32 /**
33 * @param msg
34 * @param session
35 */
36 public Rack(NXCPMessage msg, NXCSession session)
37 {
38 super(msg, session);
39 height = msg.getVariableAsInteger(NXCPCodes.VID_HEIGHT);
40 }
41
42 /* (non-Javadoc)
43 * @see org.netxms.client.objects.AbstractObject#getObjectClassName()
44 */
45 @Override
46 public String getObjectClassName()
47 {
48 return "Rack";
49 }
50
51 /**
52 * @return the height
53 */
54 public int getHeight()
55 {
56 return height;
57 }
58 }