Class SetOperations
- java.lang.Object
-
- net.ssehub.easy.varModel.cstEvaluation.SetOperations
-
public class SetOperations extends java.lang.ObjectImplements set operations.- Author:
- Holger Eichelberger
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static IOperationEvaluatorDIFFERENCEImplements the difference (-) operation.(package private) static IOperationEvaluatorEXCLUDINGImplements the "excluding" operation.(package private) static IOperationEvaluatorINCLUDINGImplements the "including" operation.(package private) static IOperationEvaluatorSYMMETRIC_DIFFERENCEImplements the symmetric difference operation.(package private) static IOperationEvaluatorUNIONImplements the union operation.
-
Constructor Summary
Constructors Modifier Constructor Description privateSetOperations()Prevent instance creation.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static voidaddAll(ContainerOperations.ContainerArgument cnt, java.util.List<Value> result, java.util.HashSet<Value> done, EvaluationAccessor resAcc)Adds all elements incnttoresult.private static voidaddAllXor(ContainerOperations.ContainerArgument cnt, java.util.HashSet<Value> set1, java.util.HashSet<Value> set2, java.util.List<Value> result, EvaluationAccessor resAcc)Adds all elements fromcnttoresultif the individual elements are either inset1or inset2.static voidregister()Registers the defined operations.
-
-
-
Field Detail
-
UNION
static final IOperationEvaluator UNION
Implements the union operation.
-
DIFFERENCE
static final IOperationEvaluator DIFFERENCE
Implements the difference (-) operation.
-
SYMMETRIC_DIFFERENCE
static final IOperationEvaluator SYMMETRIC_DIFFERENCE
Implements the symmetric difference operation.
-
EXCLUDING
static final IOperationEvaluator EXCLUDING
Implements the "excluding" operation.
-
INCLUDING
static final IOperationEvaluator INCLUDING
Implements the "including" operation.
-
-
Method Detail
-
register
public static void register()
Registers the defined operations.
-
addAll
private static final void addAll(ContainerOperations.ContainerArgument cnt, java.util.List<Value> result, java.util.HashSet<Value> done, EvaluationAccessor resAcc)
Adds all elements incnttoresult.- Parameters:
cnt- the source of the elementsresult- the target (to be modified as a side effect)done- all elements considered so farresAcc- the result accessor for transferring bound elements
-
addAllXor
private static void addAllXor(ContainerOperations.ContainerArgument cnt, java.util.HashSet<Value> set1, java.util.HashSet<Value> set2, java.util.List<Value> result, EvaluationAccessor resAcc)
Adds all elements fromcnttoresultif the individual elements are either inset1or inset2.- Parameters:
cnt- the container to take the values fromset1- the first setset2- the second setresult- the resulting elementsresAcc- result accessor for transferring bound elements
-
-