Package com.activeviam.copper
Class PointLocationSubCubePredicate
- java.lang.Object
-
- com.activeviam.copper.PointLocationSubCubePredicate
-
public class PointLocationSubCubePredicate extends Object implements Predicate<ILocation>
Predicate that tests whether the member of thethe given hierarchywith coordinates extracted by a givenILocationis granted (true) or not (false).It is the user's responsibility to make sure every evaluated locations belongs to the same scope and that these locations are not range locations.
-
-
Constructor Summary
Constructors Constructor Description PointLocationSubCubePredicate(IContext context, ILocation scope, IHierarchyInfo hierarchyInfo)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleantest(ILocation locationToTest)Verifies for each location.
LocationUtil.belongsToScope(ILocation scope, ILocation locationToTest)is true.
-
-
-
Constructor Detail
-
PointLocationSubCubePredicate
public PointLocationSubCubePredicate(IContext context, ILocation scope, IHierarchyInfo hierarchyInfo)
Constructor.- Parameters:
context- the current context to retrieve the subcube fromscope- the scope of the queryhierarchyInfo- the hierarchy to look at
-
-