public class TimeUtils extends Object
| Constructor and Description |
|---|
TimeUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Interval[][] |
calculateTemporalDistance(Interval[][] constraintMatrix)
This method calculates the transitive closure of the given adjacency matrix
in order to find the temporal distance between each event represented in the
adjacency matrix.
|
static Date |
evalDateExpression(TimerExpression expr,
Tuple leftTuple,
Declaration[] declrs,
InternalWorkingMemory wm) |
static long |
evalTimeExpression(TimerExpression expr,
Tuple leftTuple,
Declaration[] declrs,
InternalWorkingMemory wm) |
static long |
parseTimeString(String time)
Parses the given time String and returns the corresponding time
in milliseconds
|
public static Interval[][] calculateTemporalDistance(Interval[][] constraintMatrix)
constraintMatrix - the starting adjacency matrixpublic static long parseTimeString(String time)
time - NullPointerException - if time is nullpublic static long evalTimeExpression(TimerExpression expr, Tuple leftTuple, Declaration[] declrs, InternalWorkingMemory wm)
public static Date evalDateExpression(TimerExpression expr, Tuple leftTuple, Declaration[] declrs, InternalWorkingMemory wm)
Copyright © 2001–2021 JBoss by Red Hat. All rights reserved.