public class TimeJELFunction extends Object implements java.util.function.DoubleUnaryOperator
| Modifier and Type | Class and Description |
|---|---|
static class |
TimeJELFunction.TimeQuantity
Defines a quantity representing time that can be used in expressions
supplied to this class.
|
static class |
TimeJELFunction.TimeResolver
This public class is an implementation detail,
not intended for external use.
|
| Constructor and Description |
|---|
TimeJELFunction(String fexpr)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
applyAsDouble(double unixSec)
Function of time in seconds since the Unix epoch.
|
String |
getExpression()
Returns the text of the function expression.
|
static TimeJELFunction.TimeQuantity[] |
getTimeQuantities()
Returns a list of TimeQuantity objects that can be referred to
by name from expressions used by this class.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitandThen, compose, identitypublic TimeJELFunction(String fexpr) throws gnu.jel.CompilationException
fexpr - JEL expression in terms of a time variablegnu.jel.CompilationExceptionpublic double applyAsDouble(double unixSec)
applyAsDouble in interface java.util.function.DoubleUnaryOperatorunixSec - unix secondspublic String getExpression()
public static TimeJELFunction.TimeQuantity[] getTimeQuantities()
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.