|
Oracle® Spatial Java API Reference 10g Release 2 (10.2) B14373-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Path
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 |
|---|
int getID()
void setID(int id)
throws NetworkDataException
id - the path ID to be setNetworkDataExceptionjava.lang.String getName()
void setName(java.lang.String name)
name - the path name to be setjava.lang.String getType()
void setType(java.lang.String type)
type - the path type to be setLink getLinkAt(int index)
Node getNodeAt(int index)
index - the specified node positionboolean isClosed()
Node getStartNode()
Node getEndNode()
Network getNetwork()
Link[] getLinkArray()
java.util.Iterator getLinks()
Node[] getNodeArray()
java.util.Iterator getNodes()
int getNoOfLinks()
int size()
double getCost()
boolean isConnected(Path path)
boolean isSimple()
boolean isTemporary()
boolean contains(Node n)
n - the specified nodeboolean contains(Link l)
l - the specified linkboolean contains(Path path)
path - the specified pathjava.lang.Object clone()
JGeometry getGeometry()
void setGeometry(JGeometry geom)
boolean isLogical()
boolean isActive()
java.lang.Object getUserData()
void setUserData(java.lang.Object userData)
userData - the user data.boolean getState()
void computeGeometry(double tolerance)
tolerance - the tolerance for testing if two points are the same.double getDuration()
void setUserData(java.lang.String name,
java.lang.Object data)
name - name for the user datadata - user datajava.lang.Object getUserData(java.lang.String name)
name - name for the user data
|
Oracle® Spatial Java API Reference 10g Release 2 (10.2) B14373-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||