Class Edge
- java.lang.Object
-
- eu.europa.ec.eurostat.jgiscotools.graph.base.structure.GraphElement
-
- eu.europa.ec.eurostat.jgiscotools.graph.base.structure.Edge
-
public class Edge extends GraphElement
A graph (directed) edge It is defined by an origin node and a destination node. It can be linked to a maximum of two faces. Its geometry is a LineString.- Author:
- julien gaffuri
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Edgeclear()org.locationtech.jts.geom.CoordinategetC()org.locationtech.jts.geom.Coordinate[]getCoords()HashSet<Edge>getEdges()Collection<Face>getFaces()org.locationtech.jts.geom.LineStringgetGeometry()NodegetN1()NodegetN2()voidsetGeom(org.locationtech.jts.geom.Coordinate[] coords)voidsetN1(Node n)voidsetN2(Node n)-
Methods inherited from class eu.europa.ec.eurostat.jgiscotools.graph.base.structure.GraphElement
getGraph, getId, toString
-
-
-
-
Method Detail
-
getN1
public Node getN1()
-
setN1
public void setN1(Node n)
-
getN2
public Node getN2()
-
setN2
public void setN2(Node n)
-
getCoords
public org.locationtech.jts.geom.Coordinate[] getCoords()
-
setGeom
public void setGeom(org.locationtech.jts.geom.Coordinate[] coords)
-
getGeometry
public org.locationtech.jts.geom.LineString getGeometry()
-
getC
public org.locationtech.jts.geom.Coordinate getC()
-
getFaces
public Collection<Face> getFaces()
-
clear
public Edge clear()
-
-