Skip navigation links

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


oracle.spatial.network.lod
Class LogicalNetNodeImpl

java.lang.Object
  extended by oracle.spatial.network.lod.LogicalNetNodeImpl

All Implemented Interfaces:
LogicalNetNode, LogicalNode

public class LogicalNetNodeImpl
extends java.lang.Object
implements LogicalNetNode

Default implementation of LogicalNetNode.

Since:
11gR1

Constructor Summary
LogicalNetNodeImpl(long id, int partitionId, double cost, boolean isActive, int maxLinkLevel, int numInLinks, int numOutLinks, CategorizedUserData userData)
           

 

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.
 CategorizedUserData getCategorizedUserData()
          Returns categorized user data.
 double getCost()
          Returns the cost of this node.
 long getId()
          Returns the node ID
 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.
 int getMaxLinkLevel()
          Returns the maximum link level of the links incident 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.  
 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.  
 java.lang.Object getUserData(java.lang.String dataName)
          Deprecated.  
 boolean isActive()
          Checks whether the node is active.
 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 setCategorizedUserData(CategorizedUserData cud)
          Sets categorized user data.
 void setCost(double cost)
          Sets the cost of this node.
 void setIsActive(boolean isActive)
          Sets whether this node is active.
 void setMaxLinkLevel(int maxLinkLevel)
          Sets the maximum link level of the links incident to this node.
 void setPartitionId(int partitionId)
          Sets the partition 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> userData)
          Deprecated.  
 void setUserData(java.util.Map<java.lang.String,java.lang.Object> userDataMap)
          Deprecated.  
 void setUserData(java.lang.String dataName, java.lang.Object dataValue)
          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.
 void update(LogicalNode node)
          Copies the attributes of the input node to this node.

 

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

 

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

 

Constructor Detail

LogicalNetNodeImpl

public LogicalNetNodeImpl(long id,
                          int partitionId,
                          double cost,
                          boolean isActive,
                          int maxLinkLevel,
                          int numInLinks,
                          int numOutLinks,
                          CategorizedUserData userData)

Method Detail

getPartitionId

public int getPartitionId()
Description copied from interface: LogicalNetNode
Returns the partition ID.
Specified by:
getPartitionId in interface LogicalNetNode
Returns:

setPartitionId

public void setPartitionId(int partitionId)
Description copied from interface: LogicalNetNode
Sets the partition ID.
Specified by:
setPartitionId in interface LogicalNetNode

getInLinks

public LogicalNetLink[] getInLinks(boolean activeOnly)
Description copied from interface: LogicalNetNode
Returns the array of incoming links to this node.
Specified by:
getInLinks in interface LogicalNetNode
Returns:
array of links

getOutLinks

public LogicalNetLink[] getOutLinks(boolean activeOnly)
Description copied from interface: LogicalNetNode
Returns the array of outgoing links from this node.
Specified by:
getOutLinks in interface LogicalNetNode
Returns:
array of links

getIncidentLinks

public LogicalNetLink[] getIncidentLinks(boolean activeOnly)
Description copied from interface: LogicalNetNode
Returns the IDs of all the links incident to this node.
Specified by:
getIncidentLinks in interface LogicalNetNode
Returns:
array of incident link IDs

getNumberOfInLinks

public int getNumberOfInLinks()
Description copied from interface: LogicalNetNode
Returns the number of incoming links.
Specified by:
getNumberOfInLinks in interface LogicalNetNode
Returns:
number of incoming links

getNumberOfOutLinks

public int getNumberOfOutLinks()
Description copied from interface: LogicalNetNode
Returns the number of outgoing links.
Specified by:
getNumberOfOutLinks in interface LogicalNetNode
Returns:
number of outgoing links

addInLink

public void addInLink(LogicalNetLink link)
Description copied from interface: LogicalNetNode
Adds an incoming link to this node.
Specified by:
addInLink in interface LogicalNetNode
Parameters:
link - incoming link

addOutLink

public void addOutLink(LogicalNetLink link)
Description copied from interface: LogicalNetNode
Adds an outgoing link to this node.
Specified by:
addOutLink in interface LogicalNetNode
Parameters:
link - outgoing link

getPreviousNodeIds

public long[] getPreviousNodeIds(boolean activeOnly)
Description copied from interface: LogicalNetNode
Returns the IDs of all the nodes with a direct link to this node.
Specified by:
getPreviousNodeIds in interface LogicalNetNode
Returns:
array of previous node IDs

getNextNodeIds

public long[] getNextNodeIds(boolean activeOnly)
Description copied from interface: LogicalNetNode
Returns the IDs of all the nodes with a direct link from this node.
Specified by:
getNextNodeIds in interface LogicalNetNode
Returns:
array of next node IDs

getAdjacentNodeIds

public long[] getAdjacentNodeIds(boolean activeOnly)
Description copied from interface: LogicalNetNode
Returns the IDs of all the nodes with a direct link to or from this node.
Specified by:
getAdjacentNodeIds in interface LogicalNetNode
Returns:
array of adjacent node IDs

removeInLink

public void removeInLink(long linkId)
Description copied from interface: LogicalNetNode
Removes the incoming link with the specified link ID.
Specified by:
removeInLink in interface LogicalNetNode
Parameters:
linkId - link ID

removeOutLink

public void removeOutLink(long linkId)
Description copied from interface: LogicalNetNode
Removes the outgoing link with the specified link ID.
Specified by:
removeOutLink in interface LogicalNetNode
Parameters:
linkId - link ID

toStandAloneNode

public LogicalNode toStandAloneNode()
Description copied from interface: LogicalNetNode
Returns a new instance of a standalone node, which has the same properties as this node.
Specified by:
toStandAloneNode in interface LogicalNetNode
Returns:
a standalone node

clone

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

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

getCategorizedUserData

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

setCategorizedUserData

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

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 -

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> userData)
Deprecated. 
Sets user data.
Parameters:
userData - user Data

getId

public long getId()
Description copied from interface: LogicalNode
Returns the node ID
Specified by:
getId in interface LogicalNode
Returns:
node ID

getCost

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

setCost

public void setCost(double cost)
Description copied from interface: LogicalNode
Sets the cost of this node.
Specified by:
setCost in interface LogicalNode
Parameters:
cost - node cost

getMaxLinkLevel

public int getMaxLinkLevel()
Description copied from interface: LogicalNode
Returns the maximum link level of the links incident to this node.
Specified by:
getMaxLinkLevel in interface LogicalNode
Returns:
the maximum link level of the links incident to this node

setMaxLinkLevel

public void setMaxLinkLevel(int maxLinkLevel)
Description copied from interface: LogicalNode
Sets the maximum link level of the links incident to this node.
Specified by:
setMaxLinkLevel in interface LogicalNode
Parameters:
maxLinkLevel - maximum link level of the links incident to this node

isActive

public boolean isActive()
Description copied from interface: LogicalNode
Checks whether the node is active.
Specified by:
isActive in interface LogicalNode
Returns:
true if the node is active

setIsActive

public void setIsActive(boolean isActive)
Description copied from interface: LogicalNode
Sets whether this node is active.
Specified by:
setIsActive in interface LogicalNode
Parameters:
isActive - true if the node is active; false otherwise.

update

public void update(LogicalNode node)
Description copied from interface: LogicalNode
Copies the attributes of the input node to this node.
Specified by:
update in interface LogicalNode
Parameters:
node - node containing the attributes 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.