Package org.arakhne.afc.math.graph
Interface SubGraphBuildListener<ST extends GraphSegment<ST,PT>,PT extends GraphPoint<PT,ST>>
-
- Type Parameters:
PT
- is the type of node in the graphST
- is the type of edge in the graph
public interface SubGraphBuildListener<ST extends GraphSegment<ST,PT>,PT extends GraphPoint<PT,ST>>
This interface is a listener invoked by the subgraph builder each time a new subgraph segment was reached.- Since:
- 13.0
- Version:
- 17.0 2020-01-04 14:41:42
- Author:
- Stéphane GALLAND
- Maven Group Id:
- org.arakhne.afc.core
- Maven Artifact Id:
- mathgraph
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
nonTerminalPointReached(SubGraph<ST,PT,?> graph, PT point, ST arrivingSegment)
Invoked when a non terminal point was added to a subgraph.default void
segmentAdded(SubGraph<ST,PT,?> graph, GraphIterationElement<ST,PT> elementDescription)
Invoked when a segment was added to a subgraph.default void
terminalPointReached(SubGraph<ST,PT,?> graph, PT point, ST arrivingSegment)
Invoked when a terminal point was added to a subgraph.
-
-
-
Method Detail
-
segmentAdded
default void segmentAdded(SubGraph<ST,PT,?> graph, GraphIterationElement<ST,PT> elementDescription)
Invoked when a segment was added to a subgraph.- Parameters:
graph
- is the subgraph under building.elementDescription
- is the added segment.
-
terminalPointReached
default void terminalPointReached(SubGraph<ST,PT,?> graph, PT point, ST arrivingSegment)
Invoked when a terminal point was added to a subgraph.A terminal point is a point which corresponds to the bounds of the subgraph.
- Parameters:
graph
- is the subgraph under building.point
- is the added terminal point.arrivingSegment
- is the segment from which this point is reached.
-
nonTerminalPointReached
default void nonTerminalPointReached(SubGraph<ST,PT,?> graph, PT point, ST arrivingSegment)
Invoked when a non terminal point was added to a subgraph.A terminal point is a point which corresponds to the bounds of the subgraph.
- Parameters:
graph
- is the subgraph under building.point
- is the added terminal point.arrivingSegment
- is the segment from which this point is reached.
-
-