Class PassiveRackElement
java.lang.Object
org.netxms.client.objects.configs.PassiveRackElement
Rack element configuration entry
-
Field Summary
Modifier and TypeFieldDescriptionint
long
int
int
-
Constructor Summary
ConstructorDescriptionCreate empty rack attribute entryPassiveRackElement
(NXCPMessage msg, long baseId) Rack passive element constructorRack passive element copy constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
fillMessage
(NXCPMessage msg, long baseId) Fill message with passive rack element dataint
long
getId()
getName()
Get element nameGet orientationint
int
Get attribute position in rackgetType()
Get element typevoid
setFrontImage
(UUID frontImage) void
setHeight
(int height) void
setId
(long id) void
Set element namevoid
setOrientation
(RackOrientation orientation) Set attribute orientationvoid
setPortCount
(int portCount) void
setPosition
(int position) Set attribute positionvoid
setRearImage
(UUID rearImage) void
Set 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
-