Package org.netxms.client
Class PhysicalLink
java.lang.Object
org.netxms.client.PhysicalLink
Represents physical link between devices or patch panels
-
Constructor Summary
ConstructorDescriptionConstructor for new objectPhysicalLink
(NXCPMessage msg, long base) Object constructor form messagePhysicalLink
(PhysicalLink link) Copy constructor for physical link -
Method Summary
Modifier and TypeMethodDescriptionvoid
fillMessage
(NXCPMessage msg, long base) Fill message with object fieldslong
getId()
Get link object IDint
long
long
int
int
long
long
int
void
setDescription
(String description) void
setId
(long id) Set link object IDvoid
setLeftFront
(boolean front) Set "isFront" flag for left side of the linkvoid
setLeftObjectId
(long leftObjectId) void
setLeftPatchPanelId
(long leftPatchPanelId) void
setLeftPortNumber
(int leftPortNumber) void
setRightFront
(boolean front) Set "isFront" flag for right side of the linkvoid
setRightObjectId
(long rightObjectId) void
setRightPatchPanelId
(long rightPatchPanelId) void
setRightPortNumber
(int rightPortNumber)
-
Constructor Details
-
PhysicalLink
public PhysicalLink()Constructor for new object -
PhysicalLink
Object constructor form message- Parameters:
msg
- messagebase
- base id
-
PhysicalLink
Copy constructor for physical link- Parameters:
link
- link to copy form
-
-
Method Details
-
fillMessage
Fill message with object fields- Parameters:
msg
- message to fillbase
- base id
-
getId
public long getId()Get link object ID- Returns:
- link object ID
-
setId
public void setId(long id) Set link object ID- Parameters:
id
- new link object ID
-
getDescription
- Returns:
- the description
-
setDescription
- Parameters:
description
- the description to set
-
getLeftObjectId
public long getLeftObjectId()- Returns:
- the leftObjectId
-
setLeftObjectId
public void setLeftObjectId(long leftObjectId) - Parameters:
leftObjectId
- the leftObjectId to set
-
getLeftPatchPanelId
public long getLeftPatchPanelId()- Returns:
- the leftPatchPanelId
-
setLeftPatchPanelId
public void setLeftPatchPanelId(long leftPatchPanelId) - Parameters:
leftPatchPanelId
- the leftPatchPanelId to set
-
getLeftPortNumber
public int getLeftPortNumber()- Returns:
- the leftPortNumber
-
setLeftPortNumber
public void setLeftPortNumber(int leftPortNumber) - Parameters:
leftPortNumber
- the leftPortNumber to set
-
getLeftFront
public int getLeftFront()- Returns:
- the leftFront
-
setLeftFront
public void setLeftFront(boolean front) Set "isFront" flag for left side of the link- Parameters:
front
- true if this link comes to front side on the left
-
getRightObjectId
public long getRightObjectId()- Returns:
- the rightObjectId
-
setRightObjectId
public void setRightObjectId(long rightObjectId) - Parameters:
rightObjectId
- the rightObjectId to set
-
getRightPatchPanelId
public long getRightPatchPanelId()- Returns:
- the rightPatchPanelId
-
setRightPatchPanelId
public void setRightPatchPanelId(long rightPatchPanelId) - Parameters:
rightPatchPanelId
- the rightPatchPanelId to set
-
getRightPortNumber
public int getRightPortNumber()- Returns:
- the rightPortNumber
-
setRightPortNumber
public void setRightPortNumber(int rightPortNumber) - Parameters:
rightPortNumber
- the rightPortNumber to set
-
getRightFront
public int getRightFront()- Returns:
- the rightFront
-
setRightFront
public void setRightFront(boolean front) Set "isFront" flag for right side of the link- Parameters:
front
- true if this link comes to front side on the right
-