public class Edge extends Object implements IEdge
| Constructor and Description |
|---|
Edge(IGraph graph,
INode initialNode,
INode finalNode,
Set<IFeature> geoObjects,
ICurve geom) |
Edge(INode initialNode,
INode finalNode) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
INode |
getFinalNode()
the final node of the edge
|
ICurve |
getGeom()
The geometry of the edge
|
Set<IFeature> |
getGeoObjects()
the possible features attached to the edge
|
IGraph |
getGraph()
The graph the edge is part of
|
int |
getId()
The universal id of the edge
|
INode |
getInitialNode()
the initial node of the edge
|
Set<IEdge> |
getNextArcs()
Get the arcs following this after both of this' nodes.
|
Set<IEdge> |
getNextArcs(INode n)
Get the arcs following this after one of this' node passed as input of the
method.
|
Set<INode> |
getNodes()
Both nodes of the edge
|
double |
getWeight()
the weight of the edge
|
int |
hashCode() |
boolean |
isOriented()
Boolean to know if the edge is oriented or not
|
void |
setFinalNode(INode finalNode) |
void |
setGeom(ICurve geom) |
void |
setGeoObjects(Set<IFeature> geoObjects) |
void |
setGraph(IGraph graph) |
void |
setId(int id) |
void |
setInitialNode(INode initialNode) |
void |
setWeight(double weight) |
String |
toString() |
public Edge(IGraph graph, INode initialNode, INode finalNode, Set<IFeature> geoObjects, ICurve geom)
public double getWeight()
IEdgepublic boolean isOriented()
IEdgeisOriented in interface IEdgepublic INode getInitialNode()
IEdgegetInitialNode in interface IEdgepublic void setInitialNode(INode initialNode)
setInitialNode in interface IEdgepublic INode getFinalNode()
IEdgegetFinalNode in interface IEdgepublic void setFinalNode(INode finalNode)
setFinalNode in interface IEdgepublic Set<IFeature> getGeoObjects()
IEdgegetGeoObjects in interface IEdgepublic void setGeoObjects(Set<IFeature> geoObjects)
setGeoObjects in interface IEdgepublic int getId()
IEdgepublic IGraph getGraph()
IEdgepublic Set<INode> getNodes()
IEdgepublic Set<IEdge> getNextArcs(INode n)
n - : the node of the arc that is followedCopyright © 2016 Laboratoire COGIT, IGN. All rights reserved.