-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.interfaces.geometry.euclidean2d.graph.NavigationGraph,java.io.Serializable,kotlin.Cloneable,org.jgrapht.Graph
public class BaseNavigationGraph<V extends Vector<V>, A extends GeometricTransformation<V>, N extends ConvexGeometricShape<V, A>, E extends Object> extends AbstractBaseGraph<N, E> implements NavigationGraph<V, A, N, E>
An implementation of NavigationGraph, deriving from AbstractBaseGraph. The user can specify the GraphType so as to obtain a custom graph (e.g. weighted or not, directed or undirected, etc). AbstractBaseGraph guarantees deterministic ordering for the collection it maintains, as stated in its api documentation. Note that vertices and edges are used as keys inside AbstractBaseGraph, so when choosing their types, you must follow these rules:
You must follow the contract defined in java.lang.Object for both equals and hashCode.
In particular, if you override either equals or hashCode, you must override them both.
Your implementation for hashCode must produce a value which does not change over the lifetime of the object. Further information available here.
-
-
Constructor Summary
Constructors Constructor Description BaseNavigationGraph(Class<out E> edgeClass, Boolean directed)BaseNavigationGraph(Supplier<N> vertexSupplier, Supplier<E> edgeSupplier, GraphType graphType)
-
Method Summary
Modifier and Type Method Description -
Methods inherited from class it.unibo.alchemist.model.implementations.geometry.euclidean2d.graph.BaseNavigationGraph
clone, nodeContaining, setEdgeSupplier, setVertexSupplier -
Methods inherited from class it.unibo.alchemist.model.interfaces.geometry.euclidean2d.graph.NavigationGraph
addEdge, addEdge, addVertex, addVertex, containsEdge, containsEdge, containsVertex, degreeOf, edgeSet, edgesOf, getAllEdges, getEdge, getEdgeSource, getEdgeSupplier, getEdgeTarget, getEdgeWeight, getType, getVertexSupplier, inDegreeOf, incomingEdgesOf, iterables, outDegreeOf, outgoingEdgesOf, removeAllEdges, removeAllEdges, removeAllVertices, removeEdge, removeEdge, removeVertex, setEdgeWeight, setEdgeWeight, vertexSet -
Methods inherited from class org.jgrapht.graph.AbstractBaseGraph
assertVertexExist, removeAllEdges, toStringFromSets -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-