Package com.luciad.shape
Class TLcdTimeBoundsUtil
java.lang.Object
com.luciad.shape.TLcdTimeBoundsUtil
Utility class containing several methods for processing
ILcdTimeBounds
objects.- Since:
- 9.1
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
contains
(ILcdTimeBounds aOuterTimeBounds, ILcdTimeBounds aInnerTimeBounds) Checks whether the specifiedaOuterTimeBounds
argument contains the specifiedaInnerTimeBounds
argument.static boolean
interacts
(ILcdTimeBounds aTimeBounds1, ILcdTimeBounds aTimeBounds2) Checks whether the specifiedaTimeBounds1
argument interacts with the specifiedaTimeBounds2
argument.static ILcdTimeBounds
intersection
(ILcdTimeBounds aTimeBounds1, ILcdTimeBounds aTimeBounds2) Returns the intersection between specifiedaTimeBounds1
argument and the specifiedaTimeBounds2
argument.static ILcdTimeBounds
union
(ILcdTimeBounds aTimeBounds1, ILcdTimeBounds aTimeBounds2) Returns the union of specifiedaTimeBounds1
argument and the specifiedaTimeBounds2
argument.static ILcdTimeBounds
union
(ILcdTimeBounds aTimeBounds1, ILcdTimeBounds aTimeBounds2, boolean aIgnoreUnbounded) Returns the union of two time bounds.
-
Method Details
-
contains
Checks whether the specifiedaOuterTimeBounds
argument contains the specifiedaInnerTimeBounds
argument. Note that, if an undefined time settings is found, the containment test shall fail.- Parameters:
aOuterTimeBounds
- the outer time bounds.aInnerTimeBounds
- the inner time bounds.- Returns:
- whether the specified
aOuterTimeBounds
argument contains the specifiedaInnerTimeBounds
argument.
-
interacts
Checks whether the specifiedaTimeBounds1
argument interacts with the specifiedaTimeBounds2
argument. Note that, if an undefined time settings is found, the interaction test shall fail.- Parameters:
aTimeBounds1
- the first time bounds.aTimeBounds2
- the second time bounds.- Returns:
- whether the specified
aTimeBounds1
argument interacts with the specifiedaTimeBounds2
argument.
-
intersection
Returns the intersection between specifiedaTimeBounds1
argument and the specifiedaTimeBounds2
argument. Note that, if an undefinedILcdTimeBounds
object is found, or when there is no intersection, an undefinedILcdTimeBounds
is returned.- Parameters:
aTimeBounds1
- the first time bounds.aTimeBounds2
- the second time bounds.- Returns:
- the intersection between specified
aTimeBounds1
argument and the specifiedaTimeBounds2
argument.
-
union
Returns the union of specifiedaTimeBounds1
argument and the specifiedaTimeBounds2
argument. Note that, if an undefinedILcdTimeBounds
object is found, an undefinedILcdTimeBounds
is returned.- Parameters:
aTimeBounds1
- the first time bounds.aTimeBounds2
- the second time bounds.- Returns:
- the union of specified
aTimeBounds1
argument and the specifiedaTimeBounds2
argument.
-
union
public static ILcdTimeBounds union(ILcdTimeBounds aTimeBounds1, ILcdTimeBounds aTimeBounds2, boolean aIgnoreUnbounded) Returns the union of two time bounds. A boolean flag can be used to determine whether or not unbounded timebounds should be taken into account. When the aIgnoreUnbounded flag is set, the union operation will ignore any unbounded parts of the two timebounds.
For instance, when the aIgnoreUnbounded flag is set to true, and there are two bounds:- [0,UNBOUNDED]
- [10,UNBOUNDED]
In the same example, when the flag is set to false, the resulting value would be [0,UNBOUNDED]
If the given aTimeBounds is fully unbounded, then depending on the flag, this timebounds will either become fully unbounded too, or no change will occur if the unbounded parts should be ignored.
Undefined bounds will always be ignored.- Parameters:
aTimeBounds1
- The first time boundsaTimeBounds2
- The second time boundsaIgnoreUnbounded
- Whether or not to ignore the unbounded parts of timebounds. (See description)- Returns:
- the union time bounds
-