Package org.netxms.client
Class PhysicalLink
java.lang.Object
org.netxms.client.PhysicalLink
Represents physical link between devices or patch panels
- 
Constructor SummaryConstructorsConstructorDescriptionConstructor for new objectPhysicalLink(NXCPMessage msg, long base) Object constructor form messagePhysicalLink(PhysicalLink link) Copy constructor for physical link
- 
Method SummaryModifier and TypeMethodDescriptionvoidfillMessage(NXCPMessage msg, long base) Fill message with object fieldslonggetId()Get link object IDintlonglongintintlonglongintvoidsetDescription(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 Details- 
PhysicalLinkpublic PhysicalLink()Constructor for new object
- 
PhysicalLinkObject constructor form message- Parameters:
- msg- message
- base- base id
 
- 
PhysicalLinkCopy constructor for physical link- Parameters:
- link- link to copy form
 
 
- 
- 
Method Details- 
fillMessageFill message with object fields- Parameters:
- msg- message to fill
- base- base id
 
- 
getIdpublic long getId()Get link object ID- Returns:
- link object ID
 
- 
setIdpublic 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
 
- 
getLeftObjectIdpublic long getLeftObjectId()- Returns:
- the leftObjectId
 
- 
setLeftObjectIdpublic void setLeftObjectId(long leftObjectId) - Parameters:
- leftObjectId- the leftObjectId to set
 
- 
getLeftPatchPanelIdpublic long getLeftPatchPanelId()- Returns:
- the leftPatchPanelId
 
- 
setLeftPatchPanelIdpublic void setLeftPatchPanelId(long leftPatchPanelId) - Parameters:
- leftPatchPanelId- the leftPatchPanelId to set
 
- 
getLeftPortNumberpublic int getLeftPortNumber()- Returns:
- the leftPortNumber
 
- 
setLeftPortNumberpublic void setLeftPortNumber(int leftPortNumber) - Parameters:
- leftPortNumber- the leftPortNumber to set
 
- 
getLeftFrontpublic int getLeftFront()- Returns:
- the leftFront
 
- 
setLeftFrontpublic 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
 
- 
getRightObjectIdpublic long getRightObjectId()- Returns:
- the rightObjectId
 
- 
setRightObjectIdpublic void setRightObjectId(long rightObjectId) - Parameters:
- rightObjectId- the rightObjectId to set
 
- 
getRightPatchPanelIdpublic long getRightPatchPanelId()- Returns:
- the rightPatchPanelId
 
- 
setRightPatchPanelIdpublic void setRightPatchPanelId(long rightPatchPanelId) - Parameters:
- rightPatchPanelId- the rightPatchPanelId to set
 
- 
getRightPortNumberpublic int getRightPortNumber()- Returns:
- the rightPortNumber
 
- 
setRightPortNumberpublic void setRightPortNumber(int rightPortNumber) - Parameters:
- rightPortNumber- the rightPortNumber to set
 
- 
getRightFrontpublic int getRightFront()- Returns:
- the rightFront
 
- 
setRightFrontpublic 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
 
 
-