|
Oracle® Spatial Java API Reference 11g Release 2 (11.2) E11829-02 |
||||||||
| 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 methods supported by 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. |
|
PointOnNet(long linkId, double percentage, UserData userData)Constructs a PointOnNet for a point on link. |
|
PointOnNet(long nodeId, UserData userData)Constructs a PointOnNet for a node. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o) |
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. |
UserData |
getUserData()Returns the user data associated with this point on net. |
int |
hashCode() |
boolean |
isNode()Checks whether this point falls on a node or not. |
boolean |
isPointOnLink()Checks whether this point falls on a link or not. |
void |
removeUserData()Removes all user data associated to this object. |
void |
setUserData(UserData userData)Set user data. |
java.lang.String |
toString() |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PointOnNet(long nodeId)
nodeId - node ID
public PointOnNet(long linkId,
double percentage)
linkId - link IDpercentage - percentage on the link
public PointOnNet(long nodeId,
UserData userData)
nodeId - node IDuserData - user data
public PointOnNet(long linkId,
double percentage,
UserData userData)
linkId - link IDpercentage - percentage on the linkuserData - user data| Method Detail |
|---|
public boolean isNode()
public boolean isPointOnLink()
public long getNodeId()
public long getLinkId()
public double getPercentage()
public UserData getUserData()
public void setUserData(UserData userData)
userData - user datapublic void removeUserData()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
Oracle® Spatial Java API Reference 11g Release 2 (11.2) E11829-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||