public abstract class CoverageGridPointCreationCallback extends Delegate
This is used to provide custom implementation for orienting grid points and
providing services on the grid for use in access calculations. The user is responsible for ensuring
that the ILocationPointService
(and any other services involving position) use the position
of the given grid point.
Modifier and Type | Class and Description |
---|---|
static interface |
CoverageGridPointCreationCallback.Function
A functional interface for the containing delegate type.
|
Constructor and Description |
---|
CoverageGridPointCreationCallback()
Creates a new instance of this delegate.
|
CoverageGridPointCreationCallback(Class<?> targetClass,
String methodName,
Class<?>... methodParameterClasses)
Initializes a delegate that will invoke a static method on a class.
|
CoverageGridPointCreationCallback(Object targetObject,
String methodName,
Class<?>... methodParameterClasses)
Initializes a delegate that will invoke an instance method on a class instance.
|
Modifier and Type | Method and Description |
---|---|
abstract IServiceProvider |
invoke(CoverageGridPointWithResults gridPointWithResults)
A delegate which defines a method for creating a service provider for use in access based on a given
coverage grid point position.
|
static CoverageGridPointCreationCallback |
of(CoverageGridPointCreationCallback.Function f)
Create a delegate for the given interface.
|
static CoverageGridPointCreationCallback |
of(CoverageGridPointCreationCallback.Function f,
Class<?> targetClass,
String methodName,
Class<?>... methodParameterClasses)
Create a delegate for the given interface.
|
static CoverageGridPointCreationCallback |
of(CoverageGridPointCreationCallback.Function f,
Object targetObject,
String methodName,
Class<?>... methodParameterClasses)
Create a delegate for the given interface.
|
public CoverageGridPointCreationCallback()
public CoverageGridPointCreationCallback(@Nonnull Object targetObject, @Nonnull String methodName, @Nonnull Class<?>... methodParameterClasses)
targetObject
- The class instance on which the delegate will invoke the method.methodName
- The name of the instance method.methodParameterClasses
- The type of the parameters of the instance method.public CoverageGridPointCreationCallback(@Nonnull Class<?> targetClass, @Nonnull String methodName, @Nonnull Class<?>... methodParameterClasses)
targetClass
- The class that defines the method.methodName
- The name of the static method.methodParameterClasses
- The type of the parameters of the static method.public abstract IServiceProvider invoke(CoverageGridPointWithResults gridPointWithResults)
This is used to provide custom implementation for orienting grid points and
providing services on the grid for use in access calculations. The user is responsible for ensuring
that the ILocationPointService
(and any other services involving position) use the position
of the given grid point.
gridPointWithResults
- The grid point to use that supplies the location service provider.@Nonnull public static CoverageGridPointCreationCallback of(@Nonnull CoverageGridPointCreationCallback.Function f)
f
- The function which will be invoked.@Nonnull public static CoverageGridPointCreationCallback of(@Nonnull CoverageGridPointCreationCallback.Function f, @Nonnull Object targetObject, @Nonnull String methodName, @Nonnull Class<?>... methodParameterClasses)
f
- The function which will be invoked.targetObject
- The class instance on which the delegate will invoke the method.methodName
- The name of the instance method.methodParameterClasses
- The type of the parameters of the instance method.@Nonnull public static CoverageGridPointCreationCallback of(@Nonnull CoverageGridPointCreationCallback.Function f, @Nonnull Class<?> targetClass, @Nonnull String methodName, @Nonnull Class<?>... methodParameterClasses)
f
- The function which will be invoked.targetClass
- The class that defines the method.methodName
- The name of the static method.methodParameterClasses
- The type of the parameters of the static method.