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.Object
clone()
Support cloneableCategorizedUserData
getCategorizedUserData()
Returns categorized user data.CategorizedUserData
getCategorizedUserData()
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)
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)
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)
LogicalNetLink
toLogicalNetLink(LogicalPartition partition)
Converts the standalone link to a partition linkLogicalLink
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.-
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:LogicalNetLink
Returns the ID of the partition that owns the link.- Specified by:
getPartitionId
in interfaceLogicalNetLink
- Returns:
-
setPartitionId
public void setPartitionId(int partitionId)
Description copied from interface:LogicalNetLink
Sets the ID of the partition that owns the link.- Specified by:
setPartitionId
in interfaceLogicalNetLink
-
getStartNode
public LogicalNetNode getStartNode()
Description copied from interface:LogicalNetLink
Returns the reference to the start node.- Specified by:
getStartNode
in interfaceLogicalNetLink
- Returns:
- start node object
-
getEndNode
public LogicalNetNode getEndNode()
Description copied from interface:LogicalNetLink
Returns the reference to the end node.- Specified by:
getEndNode
in interfaceLogicalNetLink
- Returns:
- end node object
-
setStartNode
public void setStartNode(LogicalNetNode startNode)
Description copied from interface:LogicalNetLink
Sets the reference to the start node of this link.- Specified by:
setStartNode
in interfaceLogicalNetLink
- Parameters:
startNode
- start node
-
setEndNode
public void setEndNode(LogicalNetNode endNode)
Description copied from interface:LogicalNetLink
Sets the reference to the end node of this link.- Specified by:
setEndNode
in 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:
isPartiallyLoaded
in interfaceLogicalNetLink
- Returns:
-
toStandAloneLink
public LogicalLink toStandAloneLink()
Description copied from interface:LogicalNetLink
Returns a new instance of a standalone link, which has the same properties as this link.- Specified by:
toStandAloneLink
in interfaceLogicalNetLink
- Returns:
- a standalone link
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
Support cloneable- Specified by:
clone
in interfaceLogicalLink
- Specified by:
clone
in 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:LogicalLink
Returns the link ID.- Specified by:
getId
in interfaceLogicalLink
- Returns:
- link ID
-
getLevel
public int getLevel()
Description copied from interface:LogicalLink
Returns the link level.- Specified by:
getLevel
in interfaceLogicalLink
- Returns:
- link level
-
getStartNodeId
public long getStartNodeId()
Description copied from interface:LogicalLink
Returns the start node ID.- Specified by:
getStartNodeId
in interfaceLogicalLink
- Returns:
- start node ID
-
setStartNodeId
public void setStartNodeId(long startNodeId)
Description copied from interface:LogicalLink
Sets the start node ID.- Specified by:
setStartNodeId
in interfaceLogicalLink
- Parameters:
startNodeId
- start node ID
-
getEndNodeId
public long getEndNodeId()
Description copied from interface:LogicalLink
Returns the end node ID.- Specified by:
getEndNodeId
in interfaceLogicalLink
- Returns:
- end node ID
-
setEndNodeId
public void setEndNodeId(long endNodeId)
Description copied from interface:LogicalLink
Sets the end node ID.- Specified by:
setEndNodeId
in interfaceLogicalLink
- Parameters:
endNodeId
- end node ID
-
getCost
public double getCost()
Description copied from interface:LogicalLink
Returns the cost of this link.- Specified by:
getCost
in interfaceLogicalLink
- Returns:
- link cost
-
setCost
public void setCost(double cost)
Description copied from interface:LogicalLink
Sets the cost of this link.- Specified by:
setCost
in interfaceLogicalLink
- Parameters:
cost
- link cost
-
isBidirected
public boolean isBidirected()
Description copied from interface:LogicalLink
Checks whether this link is bidirected or not.- Specified by:
isBidirected
in interfaceLogicalLink
- Returns:
- true, if this link is bidirected; false, otherwise.
-
isActive
public boolean isActive()
Description copied from interface:LogicalLink
Checks whether the link is active.- Specified by:
isActive
in interfaceLogicalLink
- Returns:
- true if the link is active; false otherwise.
-
setIsActive
public void setIsActive(boolean isActive)
Description copied from interface:LogicalLink
Sets whether the link is active.- Specified by:
setIsActive
in interfaceLogicalLink
- Parameters:
isActive
- true if the link is active; false otherwise.
-
setIsBidirected
public void setIsBidirected(boolean isBidirected)
Description copied from interface:LogicalLink
Sets whether the link is bidirected or not.- Specified by:
setIsBidirected
in interfaceLogicalLink
- Parameters:
isBidirected
- true, if this link is bidirected; false, otherwise.
-
toLogicalNetLink
public LogicalNetLink toLogicalNetLink(LogicalPartition partition)
Description copied from interface:LogicalLink
Converts the standalone link to a partition link- Specified by:
toLogicalNetLink
in interfaceLogicalLink
- Parameters:
partition
- the partition that contains the link- Returns:
-
update
public void update(LogicalLink link)
Description copied from interface:LogicalLink
Copies the attributes of the input link to this link.- Specified by:
update
in 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)
-
-