public class LogicalNetLinkImpl extends java.lang.Object implements LogicalNetLink
| Constructor and Description |
|---|
LogicalNetLinkImpl(long id, int partitionId, int level, LogicalNetNode startNode, LogicalNetNode endNode, double cost, boolean isBidirected, boolean isActive, boolean isExternal, CategorizedUserData userData) |
LogicalNetLinkImpl(long id, int partitionId, int level, LogicalNetNode startNode, LogicalNetNode endNode, double cost, boolean isBidirected, boolean isActive, CategorizedUserData userData) |
LogicalNetLinkImpl(long id, int level, LogicalNetNode startNode, LogicalNetNode endNode, double cost, boolean isBidirected, boolean isActive, CategorizedUserData userData)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Support cloneable
|
CategorizedUserData |
getCategorizedUserData()
Returns categorized user data.
|
CategorizedUserData |
getCategorizedUserData()
Returns categorized user data.
|
double |
getCost()
Returns the cost of this link.
|
LogicalNetNode |
getEndNode()
Returns the reference to the end node.
|
long |
getEndNodeId()
Returns the end node ID.
|
long |
getId()
Returns the link ID.
|
int |
getLevel()
Returns the link level.
|
int |
getPartitionId()
Returns the ID of the partition that owns the link.
|
LogicalNetNode |
getStartNode()
Returns the reference to the start node.
|
long |
getStartNodeId()
Returns the start node ID.
|
UserData |
getUserData(int category)
Returns user data for the specified category.
|
UserData |
getUserData(int category)
Returns user data for the specified category.
|
boolean |
isActive()
Checks whether the link is active.
|
boolean |
isBidirected()
Checks whether this link is bidirected or not.
|
boolean |
isPartiallyLoaded()
Use link level as an indicator for whether a link is external.
|
void |
setCategorizedUserData(CategorizedUserData userData)
Sets categorized user data.
|
void |
setCategorizedUserData(CategorizedUserData cud)
Sets categorized user data.
|
void |
setCost(double cost)
Sets the cost of this link.
|
void |
setEndNode(LogicalNetNode endNode)
Sets the reference to the end node of this link.
|
void |
setEndNodeId(long endNodeId)
Sets the end node ID.
|
void |
setIsActive(boolean isActive)
Sets whether the link is active.
|
void |
setIsBidirected(boolean isBidirected)
Sets whether the link is bidirected or not.
|
void |
setPartitionId(int partitionId)
Sets the ID of the partition that owns the link.
|
void |
setStartNode(LogicalNetNode startNode)
Sets the reference to the start node of this link.
|
void |
setStartNodeId(long startNodeId)
Sets the start node ID.
|
void |
setUserData(int category, UserData userData)
Sets user data for the specified category.
|
void |
setUserData(int category, UserData userData)
Sets user data for the specified category.
|
LogicalNetLink |
toLogicalNetLink(LogicalPartition partition)
Converts the standalone link to a partition link
|
LogicalLink |
toStandAloneLink()
Returns a new instance of a standalone link, which has the same properties as this link.
|
void |
update(LogicalLink link)
Copies the attributes of the input link to this link.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCost, getEndNodeId, getId, getLevel, getStartNodeId, isActive, isBidirected, setCost, setEndNodeId, setIsActive, setIsBidirected, setStartNodeId, toLogicalNetLink, update
public LogicalNetLinkImpl(long id,
int partitionId,
int level,
LogicalNetNode startNode,
LogicalNetNode endNode,
double cost,
boolean isBidirected,
boolean isActive,
CategorizedUserData userData)
public LogicalNetLinkImpl(long id,
int partitionId,
int level,
LogicalNetNode startNode,
LogicalNetNode endNode,
double cost,
boolean isBidirected,
boolean isActive,
boolean isExternal,
CategorizedUserData userData)
public LogicalNetLinkImpl(long id,
int level,
LogicalNetNode startNode,
LogicalNetNode endNode,
double cost,
boolean isBidirected,
boolean isActive,
CategorizedUserData userData)
public int getPartitionId()
LogicalNetLinkgetPartitionId in interface LogicalNetLinkpublic void setPartitionId(int partitionId)
LogicalNetLinksetPartitionId in interface LogicalNetLinkpublic LogicalNetNode getStartNode()
LogicalNetLinkgetStartNode in interface LogicalNetLinkpublic LogicalNetNode getEndNode()
LogicalNetLinkgetEndNode in interface LogicalNetLinkpublic void setStartNode(LogicalNetNode startNode)
LogicalNetLinksetStartNode in interface LogicalNetLinkstartNode - start nodepublic void setEndNode(LogicalNetNode endNode)
LogicalNetLinksetEndNode in interface LogicalNetLinkendNode - end nodepublic boolean isPartiallyLoaded()
isPartiallyLoaded in interface LogicalNetLinkpublic LogicalLink toStandAloneLink()
LogicalNetLinktoStandAloneLink in interface LogicalNetLink
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in interface LogicalLinkclone in interface LogicalNetLinkjava.lang.CloneNotSupportedExceptionpublic CategorizedUserData getCategorizedUserData()
public void setCategorizedUserData(CategorizedUserData userData)
userData -public UserData getUserData(int category)
public void setUserData(int category,
UserData userData)
userData -public long getId()
LogicalLinkgetId in interface LogicalLinkpublic int getLevel()
LogicalLinkgetLevel in interface LogicalLinkpublic long getStartNodeId()
LogicalLinkgetStartNodeId in interface LogicalLinkpublic void setStartNodeId(long startNodeId)
LogicalLinksetStartNodeId in interface LogicalLinkstartNodeId - start node IDpublic long getEndNodeId()
LogicalLinkgetEndNodeId in interface LogicalLinkpublic void setEndNodeId(long endNodeId)
LogicalLinksetEndNodeId in interface LogicalLinkendNodeId - end node IDpublic double getCost()
LogicalLinkgetCost in interface LogicalLinkpublic void setCost(double cost)
LogicalLinksetCost in interface LogicalLinkcost - link costpublic boolean isBidirected()
LogicalLinkisBidirected in interface LogicalLinkpublic boolean isActive()
LogicalLinkisActive in interface LogicalLinkpublic void setIsActive(boolean isActive)
LogicalLinksetIsActive in interface LogicalLinkisActive - true if the link is active; false otherwise.public void setIsBidirected(boolean isBidirected)
LogicalLinksetIsBidirected in interface LogicalLinkisBidirected - true, if this link is bidirected; false, otherwise.public LogicalNetLink toLogicalNetLink(LogicalPartition partition)
LogicalLinktoLogicalNetLink in interface LogicalLinkpartition - the partition that contains the linkpublic void update(LogicalLink link)
LogicalLinkupdate in interface LogicalLinklink - link to copy frompublic CategorizedUserData getCategorizedUserData()
public void setCategorizedUserData(CategorizedUserData cud)
public UserData getUserData(int category)
public void setUserData(int category,
UserData userData)