public interface IGraphPartitionExtension extends IDecompositionListener
GraphPartition
.
A IGraphPartitionExtension
can be used for creating
new Obstacle
s that will be given to the initializer of the IObstaclePartition
where they can react to
the IObstaclePartition
's decomposition events if it implements the IDynamicDecomposition
interface.
A IGraphPartitionExtension
has to be added
to the GraphPartition
which will call method preparePartition(PathSearchConfiguration, GraphPartition)
before the IObstaclePartition
is initialized.
Modifier and Type | Method and Description |
---|---|
void |
cleanup()
Cleans up the extension from the last partitioning with the current
configuration and
GraphPartition . |
void |
preparePartition(PathSearchConfiguration configuration,
GraphPartition graphPartition)
Adds a
IGraphPartitionExtension to the GraphPartition . |
onCellCreated, onCellFinalized, onCellSubdivided
void cleanup()
configuration
and
GraphPartition
.void preparePartition(PathSearchConfiguration configuration, GraphPartition graphPartition)
IGraphPartitionExtension
to the GraphPartition
.
It is called by the given GraphPartition
upon initialization before its IObstaclePartition
is initialized. Implementations may use the graph upon which the given GraphPartition
is based to initialize
themselves and/or to add obstacles
to the list with which IObstaclePartition
is initialized.
configuration
- the configuration used for the path searchgraphPartition
- the graph partition that uses this extension