SSJ API Documentation
Stochastic Simulation in Java
Loading...
Searching...
No Matches
umontreal.ssj.mcqmctools.anova.CoordinateSetLong Class Reference

Implementation of CoordinateSet using a long bit-mask internal representation. More...

Inheritance diagram for umontreal.ssj.mcqmctools.anova.CoordinateSetLong:
umontreal.ssj.mcqmctools.anova.CoordinateSet

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< CoordinateSetsubsets (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< CoordinateSetsubsets ()
 Returns all subsets of the current coordinate set, whose cardinality is at most maxOrder.
List< CoordinateSetsubsetsNotEmpty ()
 Returns all subsets of the current coordinate set, whose cardinality is at most maxOrder.
List< CoordinateSetsubsets (int maxOrder)
 Returns all subsets of the current coordinate set, whose cardinality is at most maxOrder.
List< CoordinateSetsubsetsNotEmpty (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.

Detailed Description

Implementation of CoordinateSet using a long bit-mask internal representation.

Definition at line 10 of file CoordinateSetLong.java.

Constructor & Destructor Documentation

◆ CoordinateSetLong()

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.

Member Function Documentation

◆ allCoordinates()

CoordinateSet umontreal.ssj.mcqmctools.anova.CoordinateSetLong.allCoordinates ( int dimension)
static

Returns a set of all coordinates in a space of dimension dimension.

Definition at line 139 of file CoordinateSetLong.java.

◆ cardinality()

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.

◆ contains()

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.

◆ containsAll()

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.

◆ getMask()

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.

◆ maxCoordinate()

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.

◆ subsets()

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.


The documentation for this class was generated from the following file: