Package 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddInLink(LogicalNetLink link)Adds an incoming link to this node.voidaddOutLink(LogicalNetLink link)Adds an outgoing link to this node.java.lang.Objectclone()Support cloneable.long[]getAdjacentNodeIds(boolean activeOnly)Returns the IDs of all the nodes with a direct link to or from this node.CategorizedUserDatagetCategorizedUserData()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.intgetLinkLevel()Returns the link level of the containing partition.long[]getNextNodeIds(boolean activeOnly)Returns the IDs of all the nodes with a direct link from this node.intgetNumberOfInLinks()Returns the number of incoming links.intgetNumberOfOutLinks()Returns the number of outgoing links.LogicalNetLink[]getOutLinks(boolean activeOnly)Returns the array of outgoing links from this node.intgetPartitionId()Returns the partition ID.long[]getPreviousNodeIds(boolean activeOnly)Returns the IDs of all the nodes with a direct link to this node.UserDatagetUserData(int category)Returns user data for the specified category.booleanisDummyExternalNode()Returns true if the net node object is an external node andbooleanisPartiallyLoaded()Returns true if the net node object is an external node and partially loaded.voidremoveInLink(long linkId)Removes the incoming link with the specified link ID.voidremoveOutLink(long linkId)Removes the outgoing link with the specified link ID.voidsetCategorizedUserData(CategorizedUserData userData)Sets categorized user data.voidsetPartitionId(int partitionId)Sets the partition ID.voidsetUserData(int category, UserData userData)Sets user data for the specified category.LogicalNodetoStandAloneNode()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
-
getLinkLevel
int getLinkLevel()
Returns the link level of the containing partition.- Returns:
-
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
-
isPartiallyLoaded
boolean isPartiallyLoaded()
Returns true if the net node object is an external node and partially loaded.- Returns:
-
isDummyExternalNode
boolean isDummyExternalNode()
Returns true if the net node object is an external node and- Returns:
-
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.CloneNotSupportedExceptionSupport cloneable.- Returns:
- cloned object
- Throws:
java.lang.CloneNotSupportedException
-
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-
-
-