Skip navigation links

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


oracle.spatial.network.lod
Interface LogicalLink

All Known Subinterfaces:
LogicalNetLink, SpatialLink, SpatialNetLink
All Known Implementing Classes:
LogicalNetLinkImpl

public interface LogicalLink

This interface defines a standalone link.

Since:
11gR1

Method Summary
 java.lang.Object clone()
          Support cloneable.
 CategorizedUserData getCategorizedUserData()
          Returns categorized user data.
 double getCost()
          Returns the cost of this link.
 long getEndNodeId()
          Returns the end node ID.
 long getId()
          Returns the link ID.
 int getLevel()
          Returns the link level.
 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.
 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 userData)
          Sets categorized user data.
 void setCost(double cost)
          Sets the cost 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 setStartNodeId(long startNodeId)
          Sets the start node ID.
 void setUserData(int category, UserData userData)
          Sets user data for the specified category.
 void setUserData(java.util.Map<java.lang.String,java.lang.Object> userData)
          Deprecated.  
 void setUserData(java.lang.String dataName, java.lang.Object dataValue)
          Deprecated.  
 LogicalNetLink toLogicalNetLink(LogicalBasicNetwork network)
          Converts the standalone link to a network link
 void update(LogicalLink link)
          Copies the attributes of the input link to this link.

 

Method Detail

getId

long getId()
Returns the link ID.
Returns:
link ID

getLevel

int getLevel()
Returns the link level.
Returns:
link level

getStartNodeId

long getStartNodeId()
Returns the start node ID.
Returns:
start node ID

setStartNodeId

void setStartNodeId(long startNodeId)
Sets the start node ID.
Parameters:
startNodeId - start node ID

getEndNodeId

long getEndNodeId()
Returns the end node ID.
Returns:
end node ID

setEndNodeId

void setEndNodeId(long endNodeId)
Sets the end node ID.
Parameters:
endNodeId - end node ID

getCost

double getCost()
Returns the cost of this link.
Returns:
link cost

setCost

void setCost(double cost)
Sets the cost of this link.
Parameters:
cost - link cost

isBidirected

boolean isBidirected()
Checks whether this link is bidirected or not.
Returns:
true, if this link is bidirected; false, othereise.

setIsBidirected

void setIsBidirected(boolean isBidirected)
Sets whether the link is bidirected or not.
Parameters:
isBidirected - true, if this link is bidirected; false, othereise.

getUserData

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

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

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

setUserData

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

getCategorizedUserData

CategorizedUserData getCategorizedUserData()
Returns categorized user data.
Returns:

setCategorizedUserData

void setCategorizedUserData(CategorizedUserData userData)
Sets categorized user data.
Parameters:
userData -

toLogicalNetLink

LogicalNetLink toLogicalNetLink(LogicalBasicNetwork network)
Converts the standalone link to a network link
Parameters:
network - the network that contains the link
Returns:

isActive

boolean isActive()
Checks whether the link is active.
Returns:
true if the link is active; false otherwise.

setIsActive

void setIsActive(boolean isActive)
Sets whether the link is active.
Parameters:
isActive - true if the link is active; false otherwise.

update

void update(LogicalLink link)
Copies the attributes of the input link to this link.
Parameters:
link - link to copy from

clone

java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Support cloneable.
Returns:
cloned object
Throws:
java.lang.CloneNotSupportedException

getUserData

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

setUserData

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

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.