|
Oracle® Spatial Java API Reference 10g Release 2 (10.2) B14373-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines a network path.
Method Summary | |
java.lang.Object |
clone() Clones the path. |
void |
computeGeometry(double tolerance) Computes the path geometry from its link geometries. |
boolean |
contains(Link l) Checks if the path contains the specified link. |
boolean |
contains(Node n) Checks if the path contains the specified node. |
boolean |
contains(Path path) Checks if the path contains the specified path. |
double |
getCost() Returns the path cost. |
double |
getDuration() Gets path duration information |
Node |
getEndNode() Returns the end node of the path. |
JGeometry |
getGeometry() Returns the path geometry (JGeometry). |
int |
getID() Returns the path ID. |
Link[] |
getLinkArray() Returns the path links as an array. |
Link |
getLinkAt(int index) |
java.util.Iterator |
getLinks() Returns the path links as an Iterator. |
java.lang.String |
getName() Returns the path name. |
Network |
getNetwork() Returns the network that contains the path. |
Node[] |
getNodeArray() Returns the path nodes as an array. |
Node |
getNodeAt(int index) Returns the specified node of the path. |
java.util.Iterator |
getNodes() Returns the path nodes as an Iterator. |
int |
getNoOfLinks() Returns the number of links in the path. |
Node |
getStartNode() Returns the start node of the path. |
boolean |
getState() Gets the path state. |
java.lang.String |
getType() Returns the path type. |
java.lang.Object |
getUserData() Gets user defined data. |
java.lang.Object |
getUserData(java.lang.String name) Gets user data |
boolean |
isActive() Checks if the path is active. |
boolean |
isClosed() Checks if the path is closed. |
boolean |
isConnected(Path path) Checks if the path is connected. |
boolean |
isLogical() Chceks if the path is logical. |
boolean |
isSimple() Checks if the path is simple (no self-crossing). |
boolean |
isTemporary() Checks if the path is temporary. |
void |
setGeometry(JGeometry geom) Sets the path geometry (JGeometry). |
void |
setID(int id) Sets the path ID. |
void |
setName(java.lang.String name) Sets the path name. |
void |
setType(java.lang.String type) Sets the path type. |
void |
setUserData(java.lang.Object userData) Sets user defined data. |
void |
setUserData(java.lang.String name, java.lang.Object data) Sets user data |
int |
size() Returns the number of links in the path |
Methods inherited from interface java.lang.Comparable |
compareTo |
Method Detail |
public int getID()
public void setID(int id) throws NetworkDataException
id
- the path ID to be setNetworkDataException
public java.lang.String getName()
public void setName(java.lang.String name)
name
- the path name to be setpublic java.lang.String getType()
public void setType(java.lang.String type)
type
- the path type to be setpublic Link getLinkAt(int index)
public Node getNodeAt(int index)
index
- the specified node positionpublic boolean isClosed()
public Node getStartNode()
public Node getEndNode()
public Network getNetwork()
public Link[] getLinkArray()
public java.util.Iterator getLinks()
public Node[] getNodeArray()
public java.util.Iterator getNodes()
public int getNoOfLinks()
public int size()
public double getCost()
public boolean isConnected(Path path)
public boolean isSimple()
public boolean isTemporary()
public boolean contains(Node n)
n
- the specified nodepublic boolean contains(Link l)
l
- the specified linkpublic boolean contains(Path path)
path
- the specified pathpublic java.lang.Object clone()
public JGeometry getGeometry()
public void setGeometry(JGeometry geom)
public boolean isLogical()
public boolean isActive()
public java.lang.Object getUserData()
public void setUserData(java.lang.Object userData)
userData
- the user data.public boolean getState()
public void computeGeometry(double tolerance)
tolerance
- the tolerance for testing if two points are the same.public double getDuration()
public void setUserData(java.lang.String name, java.lang.Object data)
name
- name for the user datadata
- user datapublic java.lang.Object getUserData(java.lang.String name)
name
- name for the user data
|
Oracle® Spatial Java API Reference 10g Release 2 (10.2) B14373-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |