Package org.geotools.mbstyle.function
Class ExponentialFunction
Object
ExpressionAbstract
FunctionImpl
ExponentialFunction
- All Implemented Interfaces:
Expression,Function
Generate an output by interpolating between stops just less than and just greater than the function input. The domain
must be numeric.
Parameters:
- The interpolation input
- The base of the interpolation
- (...n) The remaining args are interpreted as pairs of stop values (input, output) for the interpolation. There must be an even number.
- Author:
- Jody Garnett (Boundless)
-
Field Summary
FieldsFields inherited from class FunctionImpl
functionNameFields inherited from interface Expression
NIL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDefault implementation simply returns the fallbackValue.<T> TDefault implementation delegates handling of context conversion to Converters utility class.List<ExponentialFunction.Stop>getStops(List<Expression> parameters) Methods inherited from class FunctionImpl
accept, dispatchArguments, equals, functionName, getFallbackValue, getFunctionName, getName, getParameters, getParameterValue, getParameterValue, hashCode, setFallbackValue, setName, setParameters, toString
-
Field Details
-
NAME
-
-
Constructor Details
-
ExponentialFunction
public ExponentialFunction()
-
-
Method Details
-
evaluate
Description copied from class:FunctionImplDefault implementation simply returns the fallbackValue.Please override this method to produce a value based on the provided arguments.
- Specified by:
evaluatein interfaceExpression- Overrides:
evaluatein classFunctionImpl- Parameters:
object- Object being evaluated; often a Feature- Returns:
- value for the provided object
-
evaluate
Description copied from class:ExpressionAbstractDefault implementation delegates handling of context conversion to Converters utility class.Subclasses are expected to make use of the Converters utility class (as the easiest way to provide value morphing in conformance with the Filter specification).
- Specified by:
evaluatein interfaceExpression- Overrides:
evaluatein classExpressionAbstract- Type Parameters:
T- The type of the returned object.- Parameters:
object- The object to evaluate the expression against.context- The type of the resulting value of the expression.- Returns:
- Evaluates the given expression based on the content of the given object an an instance of
context.
-
getStops
-