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, wait
getCost, 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()
LogicalNetLink
getPartitionId
in interface LogicalNetLink
public void setPartitionId(int partitionId)
LogicalNetLink
setPartitionId
in interface LogicalNetLink
public LogicalNetNode getStartNode()
LogicalNetLink
getStartNode
in interface LogicalNetLink
public LogicalNetNode getEndNode()
LogicalNetLink
getEndNode
in interface LogicalNetLink
public void setStartNode(LogicalNetNode startNode)
LogicalNetLink
setStartNode
in interface LogicalNetLink
startNode
- start nodepublic void setEndNode(LogicalNetNode endNode)
LogicalNetLink
setEndNode
in interface LogicalNetLink
endNode
- end nodepublic boolean isPartiallyLoaded()
isPartiallyLoaded
in interface LogicalNetLink
public LogicalLink toStandAloneLink()
LogicalNetLink
toStandAloneLink
in interface LogicalNetLink
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in interface LogicalLink
clone
in interface LogicalNetLink
java.lang.CloneNotSupportedException
public CategorizedUserData getCategorizedUserData()
public void setCategorizedUserData(CategorizedUserData userData)
userData
-public UserData getUserData(int category)
public void setUserData(int category, UserData userData)
userData
-public long getId()
LogicalLink
getId
in interface LogicalLink
public int getLevel()
LogicalLink
getLevel
in interface LogicalLink
public long getStartNodeId()
LogicalLink
getStartNodeId
in interface LogicalLink
public void setStartNodeId(long startNodeId)
LogicalLink
setStartNodeId
in interface LogicalLink
startNodeId
- start node IDpublic long getEndNodeId()
LogicalLink
getEndNodeId
in interface LogicalLink
public void setEndNodeId(long endNodeId)
LogicalLink
setEndNodeId
in interface LogicalLink
endNodeId
- end node IDpublic double getCost()
LogicalLink
getCost
in interface LogicalLink
public void setCost(double cost)
LogicalLink
setCost
in interface LogicalLink
cost
- link costpublic boolean isBidirected()
LogicalLink
isBidirected
in interface LogicalLink
public boolean isActive()
LogicalLink
isActive
in interface LogicalLink
public void setIsActive(boolean isActive)
LogicalLink
setIsActive
in interface LogicalLink
isActive
- true if the link is active; false otherwise.public void setIsBidirected(boolean isBidirected)
LogicalLink
setIsBidirected
in interface LogicalLink
isBidirected
- true, if this link is bidirected; false, otherwise.public LogicalNetLink toLogicalNetLink(LogicalPartition partition)
LogicalLink
toLogicalNetLink
in interface LogicalLink
partition
- the partition that contains the linkpublic void update(LogicalLink link)
LogicalLink
update
in interface LogicalLink
link
- link to copy frompublic CategorizedUserData getCategorizedUserData()
public void setCategorizedUserData(CategorizedUserData cud)
public UserData getUserData(int category)
public void setUserData(int category, UserData userData)