DefaultDistanceStructure

public class DefaultDistanceStructure<E, M> implements DistanceStructure<E, M>

This class is a helper class for computing the right distance on dynamic models for Reach and Escape algorithms.

Constructors

Link copied to clipboard
public void DefaultDistanceStructure(@NotNull() @NotNull() Function<E, M> distanceFunction, @NotNull() @NotNull() DistanceDomain<M> distanceDomain, @NotNull() @NotNull() M lowerBound, @NotNull() @NotNull() M upperBound, @NotNull() @NotNull() SpatialModel<E> model)

Properties

Link copied to clipboard
Link copied to clipboard
public final Function<E, M> distanceFunction
Link copied to clipboard
public final SpatialModel<E> model

Functions

Link copied to clipboard
public boolean areWithinBounds(int from, int to)
Helper method, might be preferable to the combination of isWithinBounds(getDistance(from, to)), if it makes sense for the current distance structure.
Link copied to clipboard
public Array<int> getBoundingBox(int i)
Link copied to clipboard
public M getDistance(int i, int j)
Method to retrieve the distance between the two locations.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public Array<int> getNeighbourhood(int i)
Link copied to clipboard
public boolean isWithinBounds(M d)
Method to assess whether one location is within the bounds of the spatial structure