|
Oracle® Spatial Java API Reference 11g Release 1 (11.1) B28401-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.spatial.network.lod.PointOnNet
public class PointOnNet
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.
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 |
---|
public PointOnNet(long nodeId)
nodeId
- node IDpublic PointOnNet(long linkId, double percentage)
linkId
- link IDpercentage
- percentage on the linkMethod Detail |
---|
public boolean isNode()
public boolean isPointOnLink()
public long getNodeId() throws MethodNotSupportedException
MethodNotSupportedException
- if the point falls on a linkpublic long getLinkId() throws MethodNotSupportedException
MethodNotSupportedException
- if the point falls on a node.public double getPercentage() throws MethodNotSupportedException
MethodNotSupportedException
- if the point falls on a node.
|
Oracle® Spatial Java API Reference 11g Release 1 (11.1) B28401-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |