Skip navigation links

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


oracle.spatial.network.lod
Interface LogicalNetNode

All Superinterfaces:
LogicalNode
All Known Subinterfaces:
SpatialNetNode
All Known Implementing Classes:
LogicalNetNodeImpl

public interface LogicalNetNode
extends LogicalNode

A LogicalNetNode is a LogicalNode with reference to adjacent node and link objects.

Since:
11gR1

Method Summary
 void addInLink(LogicalNetLink link)
          Adds an incoming link to this node.
 void addOutLink(LogicalNetLink link)
          Adds an outgoing link to this node.
 java.lang.Object clone()
          Support cloneable.
 long[] getAdjacentNodeIds(boolean activeOnly)
          Returns the IDs of all the nodes with a direct link to or from this node.
 CategorizedUserData getCategorizedUserData()
          Returns categorized user data.
 LogicalNetLink[] getIncidentLinks(boolean activeOnly)
          Returns the IDs of all the links incident to this node.
 LogicalNetLink[] getInLinks(boolean activeOnly)
          Returns the array of incoming links to this node.
 long[] getNextNodeIds(boolean activeOnly)
          Returns the IDs of all the nodes with a direct link from this node.
 int getNumberOfInLinks()
          Returns the number of incoming links.
 int getNumberOfOutLinks()
          Returns the number of outgoing links.
 LogicalNetLink[] getOutLinks(boolean activeOnly)
          Returns the array of outgoing links from this node.
 int getPartitionId()
          Returns the partition ID.
 long[] getPreviousNodeIds(boolean activeOnly)
          Returns the IDs of all the nodes with a direct link to this node.
 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.  
 void removeInLink(long linkId)
          Removes the incoming link with the specified link ID.
 void removeOutLink(long linkId)
          Removes the outgoing link with the specified link ID.
 void setCategorizedUserData(CategorizedUserData userData)
          Sets categorized user data.
 void setPartitionId(int partitionId)
          Sets the partition 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.  
 LogicalNode toStandAloneNode()
          Returns a new instance of a standalone node, which has the same properties as this node.

 

Methods inherited from interface oracle.spatial.network.lod.LogicalNode
getCost, getId, getMaxLinkLevel, isActive, setCost, setIsActive, setMaxLinkLevel, update

 

Method Detail

getPartitionId

int getPartitionId()
Returns the partition ID.
Returns:

setPartitionId

void setPartitionId(int partitionId)
Sets the partition ID.
Parameters:
partitionId -

getInLinks

LogicalNetLink[] getInLinks(boolean activeOnly)
Returns the array of incoming links to this node.
Returns:
array of links

getOutLinks

LogicalNetLink[] getOutLinks(boolean activeOnly)
Returns the array of outgoing links from this node.
Returns:
array of links

getNumberOfInLinks

int getNumberOfInLinks()
Returns the number of incoming links.
Returns:
number of incoming links

getNumberOfOutLinks

int getNumberOfOutLinks()
Returns the number of outgoing links.
Returns:
number of outgoing links

addInLink

void addInLink(LogicalNetLink link)
Adds an incoming link to this node.
Parameters:
link - incoming link

addOutLink

void addOutLink(LogicalNetLink link)
Adds an outgoing link to this node.
Parameters:
link - outgoing link

getIncidentLinks

LogicalNetLink[] getIncidentLinks(boolean activeOnly)
Returns the IDs of all the links incident to this node.
Returns:
array of incident link IDs

getPreviousNodeIds

long[] getPreviousNodeIds(boolean activeOnly)
Returns the IDs of all the nodes with a direct link to this node.
Returns:
array of previous node IDs

getNextNodeIds

long[] getNextNodeIds(boolean activeOnly)
Returns the IDs of all the nodes with a direct link from this node.
Returns:
array of next node IDs

getAdjacentNodeIds

long[] getAdjacentNodeIds(boolean activeOnly)
Returns the IDs of all the nodes with a direct link to or from this node.
Returns:
array of adjacent node IDs

removeInLink

void removeInLink(long linkId)
Removes the incoming link with the specified link ID.
Parameters:
linkId - link ID

removeOutLink

void removeOutLink(long linkId)
Removes the outgoing link with the specified link ID.
Parameters:
linkId - link ID

toStandAloneNode

LogicalNode toStandAloneNode()
Returns a new instance of a standalone node, which has the same properties as this node.
Returns:
a standalone node

clone

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

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

getCategorizedUserData

CategorizedUserData getCategorizedUserData()
Returns categorized user data.
Returns:

setCategorizedUserData

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

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 -

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

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.