|
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 link.
Method Summary | |
java.lang.Object |
clone() Clones the link. |
double[] |
computeDistanceRatio(double x, double y) Computes the distance ratio along a spatial link geometry. |
Link[] |
getChildLinkArray() Returns the child links as an array. |
java.util.Iterator |
getChildLinks() Returns the child links as an Iterator. |
Link[] |
getCoLinks() Returns the co-links as an array. |
double |
getCost() Returns the link cost. |
double |
getDuration() Gets link duration information |
double |
getEndMeasure() Gets the end measure of the referenced LRS geometry. |
Node |
getEndNode() Returns the end node. |
double |
getFlow() Returns the flow on the link after flow analysis |
JGeometry |
getGeometry() Returns the link geometry (JGeometry). |
int |
getGeomID() Returns the LRS geometry ID. |
int |
getID() Returns the link ID. |
int |
getLinkLevel() Returns the link level. |
java.lang.String |
getName() Returns the link name. |
Network |
getNetwork() Returns the network that contains the link. |
int |
getNoOfChildLinks() Gets number of child links Returns 0 if the network is a non-hierarchical network |
int |
getNoOfSibilingLinks() Gets number of sibling links Sibling links are links with the same parent |
Link |
getParentLink() Returns the parent link. |
int |
getPartitionID() Returns the link partition ID |
Link[] |
getSiblingLinkArray() Retunrs the sibling links as a Link array. |
java.util.Iterator |
getSiblings() Returns the sibling links as an Iterator. |
double |
getStartMeasure() Gets the start measure of the referenced LRS geometry. |
Node |
getStartNode() Returns the start node. |
boolean |
getState() Returns the link state. |
java.lang.String |
getType() Returns the link type. |
java.lang.Object |
getUserData() Gets the user defined data. |
java.lang.Object |
getUserData(java.lang.String name) Gets user data |
boolean |
isActive() Checks if the link is active. |
boolean |
isBidirected() Checks if the link is bidiretced |
boolean |
isExternalLink() Checks if the link is an external link that refers nodes in different networks |
boolean |
isLogical() Checks if the link is logical. |
boolean |
isTemporary() Checks if the link is temporary. |
boolean |
isUnidirected() Checks if the link is uni-diretced |
MDPoint |
locatePoint(double distanceRatio) Returns the (linearly interpreted) point on the link geometry of the given distance ratio. |
void |
makeTemporary() Makes the link temporary. |
MDPoint[] |
nearestPoint(double x, double y) Returns the nearest point on the link geometry. |
Node |
otherNode(Node node) Returns the other node of the link, if the start node = node, the end node is returned. |
void |
setBidirected(boolean isBidirected) Makes the directed link bidirected |
void |
setCost(double cost) Sets the link cost. |
void |
setDuration(double duration) Sets the link duration |
void |
setEndNode(Node node) Sets the link end node. |
void |
setFlow(double flow) Sets the flow on the link for flow analysis |
void |
setGeometry(JGeometry geom) Sets the link geometry (JGeometry). |
void |
setGeomID(int id) Sets the LRS geometry ID of this link. |
void |
setLinkLevel(int level) Sets the link level. |
void |
setMeasure(double startMeasure, double endMeasure) Sets the LRS start and end measures. |
void |
setName(java.lang.String name) Sets the link name. |
void |
setParentLink(Link link) Sets the parent link. |
void |
setPartitionID(int partitionID) Sets the link partition ID |
void |
setStartNode(Node node) Sets the link start node. |
void |
setState(boolean state) Sets the active flag. |
void |
setType(java.lang.String type) Sets the link type. |
void |
setUserData(java.lang.Object userData) Sets the user defined data. |
void |
setUserData(java.lang.String name, java.lang.Object data) Sets user data |
Methods inherited from interface java.lang.Comparable |
compareTo |
Method Detail |
public int getID()
public java.lang.String getName()
public Node getStartNode()
public Node getEndNode()
public double getCost()
public boolean getState()
public int getLinkLevel()
public java.lang.String getType()
public Network getNetwork()
public JGeometry getGeometry()
JGeometry
public Link[] getCoLinks()
public Link getParentLink()
public Link[] getChildLinkArray()
public java.util.Iterator getChildLinks()
public void setLinkLevel(int level)
level
- the link level to be setpublic void setType(java.lang.String type)
type
- the link type to be setpublic void setCost(double cost)
cost
- the link cost to be setpublic void setName(java.lang.String name)
name
- the link name to be setpublic void setStartNode(Node node)
node
- the start node of the linkpublic void setEndNode(Node node)
node
- the end node of the linkpublic void setGeometry(JGeometry geom)
geom
- the geometry of the linkJGeometry
public void setParentLink(Link link)
link
- parent link to be setpublic boolean isTemporary()
public void makeTemporary()
public Node otherNode(Node node)
node
- the specified end node.public void setGeomID(int id)
id
- the LRS geometry IDpublic int getGeomID()
public void setMeasure(double startMeasure, double endMeasure)
startMeasure
- the start measure of the referenced LRS geometryendMeasure
- the end measure of the referenced LRS geometrypublic double getStartMeasure()
public double getEndMeasure()
public boolean isLogical()
public boolean isActive()
public boolean isBidirected()
public boolean isUnidirected()
public void setBidirected(boolean isBidirected)
public java.lang.Object getUserData()
public void setUserData(java.lang.Object userData)
userData
- the user data as an Objectpublic void setState(boolean state)
state
- true if active, false otherwisepublic java.lang.Object clone()
public java.util.Iterator getSiblings()
public Link[] getSiblingLinkArray()
public boolean isExternalLink()
public double getFlow()
public void setFlow(double flow)
public double getDuration()
public void setDuration(double duration)
public int getPartitionID()
public void setPartitionID(int partitionID)
partitionID
- link partition IDpublic 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 datapublic MDPoint[] nearestPoint(double x, double y) throws NetworkDataException
x
- first ordinate of the given point.y
- second ordinate of the given point.NetworkDataException
public double[] computeDistanceRatio(double x, double y) throws NetworkDataException
x
- first ordinate of the given pointy
- second ordinate of the given pointNetworkDataException
public MDPoint locatePoint(double distanceRatio) throws NetworkDataException
distanceRatio
- the distance ratio (Euclidean distance)NetworkDataException
public int getNoOfChildLinks()
public int getNoOfSibilingLinks()
|
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 |