Implementation of CoordinateSet using a long bit-mask internal representation.
More...
Public Member Functions | |
| CoordinateSetLong (long mask) | |
Constructs a coordinate set with corresponding bit mask mask. | |
| long | getMask () |
| Returns the bit-mask representation of the current coordinate set. | |
| boolean | contains (int coord) |
Returns true if the current set contains coordinate coord. | |
| boolean | containsAll (CoordinateSet cs) |
Returns true if the current set contains all coordinates in cs. | |
| int | cardinality () |
| Returns the cardinality of the current coordinate set. | |
| int | maxCoordinate () |
| Returns the maximum coordinate index, starting at 0 for the first coordinate. | |
| List< CoordinateSet > | subsets (boolean includeEmptySet, int maxOrder) |
Returns all subsets of the current coordinate set, whose cardinality is at most maxOrder. | |
| Public Member Functions inherited from umontreal.ssj.mcqmctools.anova.CoordinateSet | |
| boolean | isSubset (CoordinateSet cs) |
Returns true if cs is a subset of the current coordinate set. | |
| List< CoordinateSet > | subsets () |
Returns all subsets of the current coordinate set, whose cardinality is at most maxOrder. | |
| List< CoordinateSet > | subsetsNotEmpty () |
Returns all subsets of the current coordinate set, whose cardinality is at most maxOrder. | |
| List< CoordinateSet > | subsets (int maxOrder) |
Returns all subsets of the current coordinate set, whose cardinality is at most maxOrder. | |
| List< CoordinateSet > | subsetsNotEmpty (int maxOrder) |
Returns all subsets of the current coordinate set, whose cardinality is at most maxOrder. | |
| String | toStringNoBraces () |
| Prints the coordinates separated by commas without enclosing braces. | |
Static Public Member Functions | |
| static CoordinateSet | allCoordinates (int dimension) |
Returns a set of all coordinates in a space of dimension dimension. | |
Implementation of CoordinateSet using a long bit-mask internal representation.
Definition at line 10 of file CoordinateSetLong.java.
| umontreal.ssj.mcqmctools.anova.CoordinateSetLong.CoordinateSetLong | ( | long | mask | ) |
Constructs a coordinate set with corresponding bit mask mask.
Definition at line 18 of file CoordinateSetLong.java.
|
static |
Returns a set of all coordinates in a space of dimension dimension.
Definition at line 139 of file CoordinateSetLong.java.
| int umontreal.ssj.mcqmctools.anova.CoordinateSetLong.cardinality | ( | ) |
Returns the cardinality of the current coordinate set.
Subclasses should override this method. The default implementation is inefficient.
Reimplemented from umontreal.ssj.mcqmctools.anova.CoordinateSet.
Definition at line 66 of file CoordinateSetLong.java.
| boolean umontreal.ssj.mcqmctools.anova.CoordinateSetLong.contains | ( | int | coord | ) |
Returns true if the current set contains coordinate coord.
Subclasses should override this method.
Reimplemented from umontreal.ssj.mcqmctools.anova.CoordinateSet.
Definition at line 53 of file CoordinateSetLong.java.
| boolean umontreal.ssj.mcqmctools.anova.CoordinateSetLong.containsAll | ( | CoordinateSet | cs | ) |
Returns true if the current set contains all coordinates in cs.
Subclasses should override this method. The default implementation is inefficient.
Reimplemented from umontreal.ssj.mcqmctools.anova.CoordinateSet.
Definition at line 58 of file CoordinateSetLong.java.
| long umontreal.ssj.mcqmctools.anova.CoordinateSetLong.getMask | ( | ) |
Returns the bit-mask representation of the current coordinate set.
Definition at line 26 of file CoordinateSetLong.java.
| int umontreal.ssj.mcqmctools.anova.CoordinateSetLong.maxCoordinate | ( | ) |
Returns the maximum coordinate index, starting at 0 for the first coordinate.
Reimplemented from umontreal.ssj.mcqmctools.anova.CoordinateSet.
Definition at line 81 of file CoordinateSetLong.java.
| List< CoordinateSet > umontreal.ssj.mcqmctools.anova.CoordinateSetLong.subsets | ( | boolean | includeEmptySet, |
| int | maxOrder ) |
Returns all subsets of the current coordinate set, whose cardinality is at most maxOrder.
Reimplemented from umontreal.ssj.mcqmctools.anova.CoordinateSet.
Definition at line 94 of file CoordinateSetLong.java.