Package oracle.spatial.network.lod
Class LogicalNetLinkImpl
- java.lang.Object
-
- oracle.spatial.network.lod.LogicalNetLinkImpl
-
- All Implemented Interfaces:
LogicalLink,LogicalNetLink
public class LogicalNetLinkImpl extends java.lang.Object implements LogicalNetLink
Default implementation of LogicalNetLink.- Since:
- 11gR1
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()Support cloneableCategorizedUserDatagetCategorizedUserData()Returns categorized user data.CategorizedUserDatagetCategorizedUserData()doublegetCost()Returns the cost of this link.LogicalNetNodegetEndNode()Returns the reference to the end node.longgetEndNodeId()Returns the end node ID.longgetId()Returns the link ID.intgetLevel()Returns the link level.intgetPartitionId()Returns the ID of the partition that owns the link.LogicalNetNodegetStartNode()Returns the reference to the start node.longgetStartNodeId()Returns the start node ID.UserDatagetUserData(int category)Returns user data for the specified category.UserDatagetUserData(int category)booleanisActive()Checks whether the link is active.booleanisBidirected()Checks whether this link is bidirected or not.booleanisPartiallyLoaded()Use link level as an indicator for whether a link is external.voidsetCategorizedUserData(CategorizedUserData userData)Sets categorized user data.voidsetCategorizedUserData(CategorizedUserData cud)voidsetCost(double cost)Sets the cost of this link.voidsetEndNode(LogicalNetNode endNode)Sets the reference to the end node of this link.voidsetEndNodeId(long endNodeId)Sets the end node ID.voidsetIsActive(boolean isActive)Sets whether the link is active.voidsetIsBidirected(boolean isBidirected)Sets whether the link is bidirected or not.voidsetPartitionId(int partitionId)Sets the ID of the partition that owns the link.voidsetStartNode(LogicalNetNode startNode)Sets the reference to the start node of this link.voidsetStartNodeId(long startNodeId)Sets the start node ID.voidsetUserData(int category, UserData userData)Sets user data for the specified category.voidsetUserData(int category, UserData userData)LogicalNetLinktoLogicalNetLink(LogicalPartition partition)Converts the standalone link to a partition linkLogicalLinktoStandAloneLink()Returns a new instance of a standalone link, which has the same properties as this link.voidupdate(LogicalLink link)Copies the attributes of the input link to this link.-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface oracle.spatial.network.lod.LogicalLink
getCost, getEndNodeId, getId, getLevel, getStartNodeId, isActive, isBidirected, setCost, setEndNodeId, setIsActive, setIsBidirected, setStartNodeId, toLogicalNetLink, update
-
-
-
-
Constructor Detail
-
LogicalNetLinkImpl
public LogicalNetLinkImpl(long id, int partitionId, int level, LogicalNetNode startNode, LogicalNetNode endNode, double cost, boolean isBidirected, boolean isActive, CategorizedUserData userData)
-
LogicalNetLinkImpl
public LogicalNetLinkImpl(long id, int partitionId, int level, LogicalNetNode startNode, LogicalNetNode endNode, double cost, boolean isBidirected, boolean isActive, boolean isExternal, CategorizedUserData userData)
-
LogicalNetLinkImpl
public LogicalNetLinkImpl(long id, int level, LogicalNetNode startNode, LogicalNetNode endNode, double cost, boolean isBidirected, boolean isActive, CategorizedUserData userData)Deprecated.
-
-
Method Detail
-
getPartitionId
public int getPartitionId()
Description copied from interface:LogicalNetLinkReturns the ID of the partition that owns the link.- Specified by:
getPartitionIdin interfaceLogicalNetLink- Returns:
-
setPartitionId
public void setPartitionId(int partitionId)
Description copied from interface:LogicalNetLinkSets the ID of the partition that owns the link.- Specified by:
setPartitionIdin interfaceLogicalNetLink
-
getStartNode
public LogicalNetNode getStartNode()
Description copied from interface:LogicalNetLinkReturns the reference to the start node.- Specified by:
getStartNodein interfaceLogicalNetLink- Returns:
- start node object
-
getEndNode
public LogicalNetNode getEndNode()
Description copied from interface:LogicalNetLinkReturns the reference to the end node.- Specified by:
getEndNodein interfaceLogicalNetLink- Returns:
- end node object
-
setStartNode
public void setStartNode(LogicalNetNode startNode)
Description copied from interface:LogicalNetLinkSets the reference to the start node of this link.- Specified by:
setStartNodein interfaceLogicalNetLink- Parameters:
startNode- start node
-
setEndNode
public void setEndNode(LogicalNetNode endNode)
Description copied from interface:LogicalNetLinkSets the reference to the end node of this link.- Specified by:
setEndNodein interfaceLogicalNetLink- Parameters:
endNode- end node
-
isPartiallyLoaded
public boolean isPartiallyLoaded()
Use link level as an indicator for whether a link is external. If the link level is less than 0, then the link must be an external link that is partially loaded.- Specified by:
isPartiallyLoadedin interfaceLogicalNetLink- Returns:
-
toStandAloneLink
public LogicalLink toStandAloneLink()
Description copied from interface:LogicalNetLinkReturns a new instance of a standalone link, which has the same properties as this link.- Specified by:
toStandAloneLinkin interfaceLogicalNetLink- Returns:
- a standalone link
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionSupport cloneable- Specified by:
clonein interfaceLogicalLink- Specified by:
clonein interfaceLogicalNetLink- Returns:
- cloned object
- Throws:
java.lang.CloneNotSupportedException
-
getCategorizedUserData
public abstract CategorizedUserData getCategorizedUserData()
Returns categorized user data.- Returns:
-
setCategorizedUserData
public abstract void setCategorizedUserData(CategorizedUserData userData)
Sets categorized user data.- Parameters:
userData-
-
getUserData
public abstract UserData getUserData(int category)
Returns user data for the specified category.- Returns:
-
setUserData
public abstract void setUserData(int category, UserData userData)Sets user data for the specified category.- Parameters:
userData-
-
getId
public long getId()
Description copied from interface:LogicalLinkReturns the link ID.- Specified by:
getIdin interfaceLogicalLink- Returns:
- link ID
-
getLevel
public int getLevel()
Description copied from interface:LogicalLinkReturns the link level.- Specified by:
getLevelin interfaceLogicalLink- Returns:
- link level
-
getStartNodeId
public long getStartNodeId()
Description copied from interface:LogicalLinkReturns the start node ID.- Specified by:
getStartNodeIdin interfaceLogicalLink- Returns:
- start node ID
-
setStartNodeId
public void setStartNodeId(long startNodeId)
Description copied from interface:LogicalLinkSets the start node ID.- Specified by:
setStartNodeIdin interfaceLogicalLink- Parameters:
startNodeId- start node ID
-
getEndNodeId
public long getEndNodeId()
Description copied from interface:LogicalLinkReturns the end node ID.- Specified by:
getEndNodeIdin interfaceLogicalLink- Returns:
- end node ID
-
setEndNodeId
public void setEndNodeId(long endNodeId)
Description copied from interface:LogicalLinkSets the end node ID.- Specified by:
setEndNodeIdin interfaceLogicalLink- Parameters:
endNodeId- end node ID
-
getCost
public double getCost()
Description copied from interface:LogicalLinkReturns the cost of this link.- Specified by:
getCostin interfaceLogicalLink- Returns:
- link cost
-
setCost
public void setCost(double cost)
Description copied from interface:LogicalLinkSets the cost of this link.- Specified by:
setCostin interfaceLogicalLink- Parameters:
cost- link cost
-
isBidirected
public boolean isBidirected()
Description copied from interface:LogicalLinkChecks whether this link is bidirected or not.- Specified by:
isBidirectedin interfaceLogicalLink- Returns:
- true, if this link is bidirected; false, otherwise.
-
isActive
public boolean isActive()
Description copied from interface:LogicalLinkChecks whether the link is active.- Specified by:
isActivein interfaceLogicalLink- Returns:
- true if the link is active; false otherwise.
-
setIsActive
public void setIsActive(boolean isActive)
Description copied from interface:LogicalLinkSets whether the link is active.- Specified by:
setIsActivein interfaceLogicalLink- Parameters:
isActive- true if the link is active; false otherwise.
-
setIsBidirected
public void setIsBidirected(boolean isBidirected)
Description copied from interface:LogicalLinkSets whether the link is bidirected or not.- Specified by:
setIsBidirectedin interfaceLogicalLink- Parameters:
isBidirected- true, if this link is bidirected; false, otherwise.
-
toLogicalNetLink
public LogicalNetLink toLogicalNetLink(LogicalPartition partition)
Description copied from interface:LogicalLinkConverts the standalone link to a partition link- Specified by:
toLogicalNetLinkin interfaceLogicalLink- Parameters:
partition- the partition that contains the link- Returns:
-
update
public void update(LogicalLink link)
Description copied from interface:LogicalLinkCopies the attributes of the input link to this link.- Specified by:
updatein interfaceLogicalLink- Parameters:
link- link to copy from
-
getCategorizedUserData
public CategorizedUserData getCategorizedUserData()
-
setCategorizedUserData
public void setCategorizedUserData(CategorizedUserData cud)
-
getUserData
public UserData getUserData(int category)
-
setUserData
public void setUserData(int category, UserData userData)
-
-