Package org.netxms.client
Class PhysicalLink
- java.lang.Object
-
- org.netxms.client.PhysicalLink
-
public class PhysicalLink extends Object
Represents physical link between devices or patch panels
-
-
Constructor Summary
Constructors Constructor Description PhysicalLink()Constructor for new objectPhysicalLink(org.netxms.base.NXCPMessage msg, long base)Object constructor form messagePhysicalLink(PhysicalLink link)Copy constructor for physical link
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfillMessage(org.netxms.base.NXCPMessage msg, long base)Fill message with object fieldsStringgetDescription()longgetId()Get link object IDintgetLeftFront()longgetLeftObjectId()longgetLeftPatchPanelId()intgetLeftPortNumber()intgetRightFront()longgetRightObjectId()longgetRightPatchPanelId()intgetRightPortNumber()voidsetDescription(String description)voidsetId(long id)Set link object IDvoidsetLeftFront(boolean front)Set "isFront" flag for left side of the linkvoidsetLeftObjectId(long leftObjectId)voidsetLeftPatchPanelId(long leftPatchPanelId)voidsetLeftPortNumber(int leftPortNumber)voidsetRightFront(boolean front)Set "isFront" flag for right side of the linkvoidsetRightObjectId(long rightObjectId)voidsetRightPatchPanelId(long rightPatchPanelId)voidsetRightPortNumber(int rightPortNumber)
-
-
-
Constructor Detail
-
PhysicalLink
public PhysicalLink()
Constructor for new object
-
PhysicalLink
public PhysicalLink(org.netxms.base.NXCPMessage msg, long base)Object constructor form message- Parameters:
msg- messagebase- base id
-
PhysicalLink
public PhysicalLink(PhysicalLink link)
Copy constructor for physical link- Parameters:
link- link to copy form
-
-
Method Detail
-
fillMessage
public void fillMessage(org.netxms.base.NXCPMessage msg, long base)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
public String getDescription()
- Returns:
- the description
-
setDescription
public void setDescription(String description)
- 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
-
-