Class PassiveRackElement
java.lang.Object
org.netxms.client.objects.configs.PassiveRackElement
Rack element configuration entry
-
Field Summary
FieldsModifier and TypeFieldDescriptionintlongintint -
Constructor Summary
ConstructorsConstructorDescriptionCreate empty rack attribute entryPassiveRackElement(NXCPMessage msg, long baseId) Rack passive element constructorRack passive element copy constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidfillMessage(NXCPMessage msg, long baseId) Fill message with passive rack element dataintlonggetId()getName()Get element nameGet orientationintintGet attribute position in rackgetType()Get element typevoidsetFrontImage(UUID frontImage) voidsetHeight(int height) voidsetId(long id) voidSet element namevoidsetOrientation(RackOrientation orientation) Set attribute orientationvoidsetPortCount(int portCount) voidsetPosition(int position) Set attribute positionvoidsetRearImage(UUID rearImage) voidSet element typetoString()To string method for object
-
Field Details
-
id
public long id -
name
-
type
-
position
public int position -
height
public int height -
orientation
-
portCount
public int portCount -
frontImage
-
rearImage
-
-
Constructor Details
-
PassiveRackElement
public PassiveRackElement()Create empty rack attribute entry -
PassiveRackElement
Rack passive element constructor- Parameters:
msg- message from serverbaseId- base field ID
-
PassiveRackElement
Rack passive element copy constructor- Parameters:
src- element to copy
-
-
Method Details
-
fillMessage
Fill message with passive rack element data- Parameters:
msg- message to fillbaseId- base id to start from
-
setType
Set element type- Parameters:
type- to set
-
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
Set attribute orientation- Parameters:
orientation- to set
-
getOrientation
Get orientation- Returns:
- orientation
-
getName
Get element name- Returns:
- element name
-
setName
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
-
getHeight
public int getHeight()- Returns:
- the height
-
setHeight
public void setHeight(int height) - Parameters:
height- the height to set
-
getFrontImage
- Returns:
- the frontImage
-
setFrontImage
- Parameters:
frontImage- the frontImage to set
-
getRearImage
- Returns:
- the rearImage
-
setRearImage
- Parameters:
rearImage- the rearImage to set
-
toString
To string method for object
-