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()
IEdge
public boolean isOriented()
IEdge
isOriented
in interface IEdge
public INode getInitialNode()
IEdge
getInitialNode
in interface IEdge
public void setInitialNode(INode initialNode)
setInitialNode
in interface IEdge
public INode getFinalNode()
IEdge
getFinalNode
in interface IEdge
public void setFinalNode(INode finalNode)
setFinalNode
in interface IEdge
public Set<IFeature> getGeoObjects()
IEdge
getGeoObjects
in interface IEdge
public void setGeoObjects(Set<IFeature> geoObjects)
setGeoObjects
in interface IEdge
public int getId()
IEdge
public IGraph getGraph()
IEdge
public Set<INode> getNodes()
IEdge
public Set<IEdge> getNextArcs(INode n)
n
- : the node of the arc that is followedCopyright © 2016 Laboratoire COGIT, IGN. All rights reserved.