Skip navigation links

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


oracle.spatial.network.lod
Class PointOnNet

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


public class PointOnNet
extends java.lang.Object

This class defines the properties of a point on a network. A point on a network can fall on a node or in the middle of a link.

Since:
11gR1

Constructor Summary
PointOnNet(long nodeId)
          Constructs a PointOnNet for a node.
PointOnNet(long linkId, double percentage)
          Constructs a PointOnNet for a point on link.

 

Method Summary
 long getLinkId()
          Returns the link ID, if the point falls on a link.
 long getNodeId()
          Returns the node ID, if the point falls on a node.
 double getPercentage()
          Returns the percentage on the link, if the point falls on a link.
 boolean isNode()
          Checks whether this point falls on a node or not.
 boolean isPointOnLink()
          Checks whether this point falls on a link or not.

 

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

 

Constructor Detail

PointOnNet

public PointOnNet(long nodeId)
Constructs a PointOnNet for a node.
Parameters:
nodeId - node ID

PointOnNet

public PointOnNet(long linkId,
                  double percentage)
Constructs a PointOnNet for a point on link.
Parameters:
linkId - link ID
percentage - percentage on the link

Method Detail

isNode

public boolean isNode()
Checks whether this point falls on a node or not.
Returns:
true if the point falls on a node; false, if the point falls on a link.

isPointOnLink

public boolean isPointOnLink()
Checks whether this point falls on a link or not.
Returns:
true if the point falls on a link; false, if the point falls on a node.

getNodeId

public long getNodeId()
               throws MethodNotSupportedException
Returns the node ID, if the point falls on a node.
Returns:
the node ID, if the point falls on a node.
Throws:
MethodNotSupportedException - if the point falls on a link

getLinkId

public long getLinkId()
               throws MethodNotSupportedException
Returns the link ID, if the point falls on a link.
Returns:
the link ID, if the point falls on a link.
Throws:
MethodNotSupportedException - if the point falls on a node.

getPercentage

public double getPercentage()
                     throws MethodNotSupportedException
Returns the percentage on the link, if the point falls on a link.
Returns:
the percentage on the link, if the point falls on a link.
Throws:
MethodNotSupportedException - if the point falls on a node.

Skip navigation links

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


Copyright © 2007, Oracle. All Rights Reserved.