Skip navigation links

Oracle® Spatial Java API Reference
11g Release 1 (11.1)
B28401-01


oracle.spatial.network.lod
Interface LogicalNode

All Superinterfaces:
java.lang.Cloneable
All Known Subinterfaces:
LogicalNetNode, SpatialNetNode, SpatialNode

public interface LogicalNode
extends java.lang.Cloneable

This interface defines a standalone node.

Since:
11gR1

Method Summary
 double getCost()
          Returns the cost of this node.
 long getId()
          Returns the node ID
 java.util.Map<java.lang.String,java.lang.Object> getUserData()
          Returns all the user data name value pairs.
 java.lang.Object getUserData(java.lang.String dataName)
          Returns the user data object for the specified data name.
 boolean isActive()
          Checks whether the node is active.
 void setCost(double cost)
          Sets the cost of this node.
 void setIsActive(boolean isActive)
          Sets whether this node is active.
 void setUserData(java.util.Map<java.lang.String,java.lang.Object> userDataMap)
          Sets the value of the user data.
 void setUserData(java.lang.String dataName, java.lang.Object dataValue)
          Sets the value of the user data.
 void update(LogicalNode node)
          Copies the attributes of the input node to this node.

 

Method Detail

getId

long getId()
Returns the node ID
Returns:
node ID

getCost

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

setCost

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

getUserData

java.lang.Object getUserData(java.lang.String dataName)
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)
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()
Returns all the user data name value pairs.
Returns:
user data name value pairs

setUserData

void setUserData(java.util.Map<java.lang.String,java.lang.Object> userDataMap)
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:
userDataMap - a map of userdata name value pairs

isActive

boolean isActive()
Checks whether the node is active.
Returns:
true if the node is active

setIsActive

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

update

void update(LogicalNode node)
Copies the attributes of the input node to this node.
Parameters:
node - node containing the attributes to copy from

Skip navigation links

Oracle® Spatial Java API Reference
11g Release 1 (11.1)
B28401-01


Copyright © 2007, Oracle. All Rights Reserved.