Class PassiveRackElement
- java.lang.Object
-
- org.netxms.client.objects.configs.PassiveRackElement
-
public class PassiveRackElement extends Object
Rack element configuration entry
-
-
Field Summary
Fields Modifier and Type Field Description longidStringnameRackOrientationorientationintportCountintpositionRackElementTypetype
-
Constructor Summary
Constructors Constructor Description PassiveRackElement()Create empty rack attribute entryPassiveRackElement(org.netxms.base.NXCPMessage msg, long base)Rack passive element constructorPassiveRackElement(PassiveRackElement element)Rack passive element copy constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfillMessage(org.netxms.base.NXCPMessage msg, long base)Fill message with passive rack element datalonggetId()StringgetName()Get element nameRackOrientationgetOrientation()Get orientationintgetPortCount()intgetPosition()Get attribute position in rackRackElementTypegetType()Get element typevoidsetId(long id)voidsetName(String name)Set element namevoidsetOrientation(RackOrientation orientation)Set attribute orientationvoidsetPortCount(int portCount)voidsetPosition(int position)Set attribute positionvoidsetType(RackElementType type)Set element typeStringtoString()To string method for object
-
-
-
Field Detail
-
id
public long id
-
name
public String name
-
type
public RackElementType type
-
position
public int position
-
orientation
public RackOrientation orientation
-
portCount
public int portCount
-
-
Constructor Detail
-
PassiveRackElement
public PassiveRackElement()
Create empty rack attribute entry
-
PassiveRackElement
public PassiveRackElement(org.netxms.base.NXCPMessage msg, long base)Rack passive element constructor- Parameters:
msg- message from serverbase- base id for creation
-
PassiveRackElement
public PassiveRackElement(PassiveRackElement element)
Rack passive element copy constructor- Parameters:
element- element to copy
-
-
Method Detail
-
fillMessage
public void fillMessage(org.netxms.base.NXCPMessage msg, long base)Fill message with passive rack element data- Parameters:
msg- message to fillbase- base id to start from
-
setType
public void setType(RackElementType type)
Set element type- Parameters:
type- to set
-
getType
public RackElementType getType()
Get element type- Returns:
- element type
-
setPosition
public void setPosition(int position)
Set attribute position- Parameters:
position- to set
-
getPosition
public int getPosition()
Get attribute position in rack- Returns:
- position
-
setOrientation
public void setOrientation(RackOrientation orientation)
Set attribute orientation- Parameters:
orientation- to set
-
getOrientation
public RackOrientation getOrientation()
Get orientation- Returns:
- orientation
-
getName
public String getName()
Get element name- Returns:
- element name
-
setName
public void setName(String name)
Set element name- Parameters:
name- new element name
-
getId
public long getId()
- Returns:
- the id
-
setId
public void setId(long id)
- Parameters:
id- the id to set
-
getPortCount
public int getPortCount()
- Returns:
- the portCount
-
setPortCount
public void setPortCount(int portCount)
- Parameters:
portCount- the portCount to set
-
-