Class Graph
- java.lang.Object
-
- eu.europa.ec.eurostat.jgiscotools.graph.base.structure.Graph
-
public class Graph extends Object
Valued and oriented graph. A spatial index is defined for each of the graph element types: nodes, edges and faces.- Author:
- julien Gaffuri
-
-
Constructor Summary
Constructors Constructor Description Graph()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Edge
buildEdge(Node n1, Node n2)
Edge
buildEdge(Node n1, Node n2, org.locationtech.jts.geom.Coordinate[] coords)
Face
buildFace(Set<Edge> edges)
Node
buildNode(org.locationtech.jts.geom.Coordinate c)
void
clear()
Node
getCreateNodeAt(org.locationtech.jts.geom.Coordinate c)
Set<Edge>
getEdge(Node n1, Node n2)
Edge
getEdge(String id)
Set<Edge>
getEdges()
Collection<Edge>
getEdgesAt(org.locationtech.jts.geom.Envelope env)
Face
getFace(String id)
Set<Face>
getFaces()
Collection<Face>
getFacesAt(org.locationtech.jts.geom.Envelope env)
Node
getNode(String id)
Node
getNodeAt(org.locationtech.jts.geom.Coordinate c)
Set<Node>
getNodes()
Collection<Node>
getNodesAt(org.locationtech.jts.geom.Envelope env)
void
insertInSpatialIndex(Edge e)
void
insertInSpatialIndex(Face f)
void
insertInSpatialIndex(Node n)
void
remove(Edge e)
void
remove(Face f)
void
remove(Node n)
void
removeAll(Collection<Edge> es)
boolean
removeFromSpatialIndex(Edge e)
boolean
removeFromSpatialIndex(Face f)
boolean
removeFromSpatialIndex(Node n)
-
-
-
Method Detail
-
buildNode
public Node buildNode(org.locationtech.jts.geom.Coordinate c)
-
remove
public void remove(Node n)
-
remove
public void remove(Edge e)
-
removeAll
public void removeAll(Collection<Edge> es)
-
remove
public void remove(Face f)
-
insertInSpatialIndex
public void insertInSpatialIndex(Node n)
-
removeFromSpatialIndex
public boolean removeFromSpatialIndex(Node n)
-
getNodesAt
public Collection<Node> getNodesAt(org.locationtech.jts.geom.Envelope env)
-
getNodeAt
public Node getNodeAt(org.locationtech.jts.geom.Coordinate c)
-
getCreateNodeAt
public Node getCreateNodeAt(org.locationtech.jts.geom.Coordinate c)
-
insertInSpatialIndex
public void insertInSpatialIndex(Edge e)
-
removeFromSpatialIndex
public boolean removeFromSpatialIndex(Edge e)
-
getEdgesAt
public Collection<Edge> getEdgesAt(org.locationtech.jts.geom.Envelope env)
-
insertInSpatialIndex
public void insertInSpatialIndex(Face f)
-
removeFromSpatialIndex
public boolean removeFromSpatialIndex(Face f)
-
getFacesAt
public Collection<Face> getFacesAt(org.locationtech.jts.geom.Envelope env)
-
clear
public void clear()
-
-