Skip navigation links

Oracle® Spatial Java API Reference
11g Release 2 (11.2)
E11829-02


oracle.spatial.network.lod
Class LogicalNetLinkImpl

java.lang.Object
  extended by 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
LogicalNetLinkImpl(long id, int level, LogicalNetNode startNode, LogicalNetNode endNode, double cost, boolean isBidirected, boolean isActive, CategorizedUserData userData)
           

 

Method Summary
 java.lang.Object clone()
          Support cloneable.
 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.
 LogicalNetNode getStartNode()
          Returns the reference to the start node.
 long getStartNodeId()
          Returns the start node ID.
 java.util.Map<java.lang.String,java.lang.Object> getUserData()
          Deprecated.  
 UserData getUserData(int category)
          Returns user data for the specified category.
 UserData getUserData(int category)
          Returns user data for the specified category.
 java.lang.Object getUserData(java.lang.String dataName)
          Deprecated.  
 boolean isActive()
          Checks whether the link is active.
 boolean isBidirected()
          Checks whether this link is bidirected or not.
 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 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.
 void setUserData(java.util.Map<java.lang.String,java.lang.Object> userDataMap)
          Deprecated.  
 void setUserData(java.lang.String dataName, java.lang.Object dataValue)
          Deprecated.  
 LogicalNetLink toLogicalNetLink(LogicalBasicNetwork network)
          Converts the standalone link to a network 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.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Methods inherited from interface oracle.spatial.network.lod.LogicalLink
getCategorizedUserData, getCost, getEndNodeId, getId, getLevel, getStartNodeId, getUserData, getUserData, isActive, isBidirected, setCategorizedUserData, setCost, setEndNodeId, setIsActive, setIsBidirected, setStartNodeId, setUserData, setUserData, toLogicalNetLink, update

 

Constructor Detail

LogicalNetLinkImpl

public LogicalNetLinkImpl(long id,
                          int level,
                          LogicalNetNode startNode,
                          LogicalNetNode endNode,
                          double cost,
                          boolean isBidirected,
                          boolean isActive,
                          CategorizedUserData userData)

Method Detail

getStartNode

public LogicalNetNode getStartNode()
Description copied from interface: LogicalNetLink
Returns the reference to the start node.
Specified by:
getStartNode in interface LogicalNetLink
Returns:
start node object

getEndNode

public LogicalNetNode getEndNode()
Description copied from interface: LogicalNetLink
Returns the reference to the end node.
Specified by:
getEndNode in interface LogicalNetLink
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 interface LogicalNetLink
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 interface LogicalNetLink
Parameters:
endNode - end node

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 interface LogicalNetLink
Returns:
a standalone link

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Description copied from interface: LogicalLink
Support cloneable.
Specified by:
clone in interface LogicalLink
Specified by:
clone in interface LogicalNetLink
Returns:
cloned object
Throws:
java.lang.CloneNotSupportedException

getUserData

public UserData getUserData(int category)
Returns user data for the specified category.
Returns:

setUserData

public 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 interface LogicalLink
Returns:
link ID

getLevel

public int getLevel()
Description copied from interface: LogicalLink
Returns the link level.
Specified by:
getLevel in interface LogicalLink
Returns:
link level

getStartNodeId

public long getStartNodeId()
Description copied from interface: LogicalLink
Returns the start node ID.
Specified by:
getStartNodeId in interface LogicalLink
Returns:
start node ID

setStartNodeId

public void setStartNodeId(long startNodeId)
Description copied from interface: LogicalLink
Sets the start node ID.
Specified by:
setStartNodeId in interface LogicalLink
Parameters:
startNodeId - start node ID

getEndNodeId

public long getEndNodeId()
Description copied from interface: LogicalLink
Returns the end node ID.
Specified by:
getEndNodeId in interface LogicalLink
Returns:
end node ID

setEndNodeId

public void setEndNodeId(long endNodeId)
Description copied from interface: LogicalLink
Sets the end node ID.
Specified by:
setEndNodeId in interface LogicalLink
Parameters:
endNodeId - end node ID

getCost

public double getCost()
Description copied from interface: LogicalLink
Returns the cost of this link.
Specified by:
getCost in interface LogicalLink
Returns:
link cost

setCost

public void setCost(double cost)
Description copied from interface: LogicalLink
Sets the cost of this link.
Specified by:
setCost in interface LogicalLink
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 interface LogicalLink
Returns:
true, if this link is bidirected; false, othereise.

isActive

public boolean isActive()
Description copied from interface: LogicalLink
Checks whether the link is active.
Specified by:
isActive in interface LogicalLink
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 interface LogicalLink
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 interface LogicalLink
Parameters:
isBidirected - true, if this link is bidirected; false, othereise.

toLogicalNetLink

public LogicalNetLink toLogicalNetLink(LogicalBasicNetwork network)
Description copied from interface: LogicalLink
Converts the standalone link to a network link
Specified by:
toLogicalNetLink in interface LogicalLink
Parameters:
network - the network 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 interface LogicalLink
Parameters:
link - link to copy from

getUserData

public java.lang.Object getUserData(java.lang.String dataName)
Deprecated. 
Returns the user data object for the specified data name.
Parameters:
dataName - name of the user data
Returns:
value of the user data

setUserData

public void setUserData(java.lang.String dataName,
                        java.lang.Object dataValue)
Deprecated. 
Sets the value of the user data. No verification of the validity of the data name is done inside this method, therefore, the caller must ensure that the input data name is valid.
Parameters:
dataName - name of the user data
dataValue - value of the user data

getUserData

public java.util.Map<java.lang.String,java.lang.Object> getUserData()
Deprecated. 
Returns user data.
Returns:
user data

setUserData

public void setUserData(java.util.Map<java.lang.String,java.lang.Object> userDataMap)
Deprecated. 
Sets user data.
Parameters:
userDataMap - user Data

getCategorizedUserData

public CategorizedUserData getCategorizedUserData()
Returns categorized user data.
Returns:

setCategorizedUserData

public void setCategorizedUserData(CategorizedUserData cud)
Sets categorized user data.

getUserData

public UserData getUserData(int category)
Returns user data for the specified category.
Returns:

setUserData

public void setUserData(int category,
                        UserData userData)
Sets user data for the specified category.

Skip navigation links

Oracle® Spatial Java API Reference
11g Release 2 (11.2)
E11829-02


Copyright © 2007, 2011, Oracle and/or its affiliates. All Rights Reserved.