SSJ
3.3.1
Stochastic Simulation in Java
|
Represents a set of coordinates. More...
Public Member Functions | |
abstract List< Integer > | asList () |
abstract int | maxCoordinate () |
Returns the maximum coordinate index, starting at 0 for the first coordinate. | |
abstract List< CoordinateSet > | subsets (boolean includeEmptySet, int maxOrder) |
Returns all subsets of the current coordinate set, whose cardinality is at most maxOrder . | |
boolean | equals (Object o) |
boolean | contains (int coord) |
Returns true if the current set contains coordinate coord . More... | |
boolean | containsAll (CoordinateSet cs) |
Returns true if the current set contains all coordinates in cs . More... | |
int | cardinality () |
Returns the cardinality of the current coordinate set. More... | |
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 . More... | |
List< CoordinateSet > | subsetsNotEmpty () |
Returns all subsets of the current coordinate set, whose cardinality is at most maxOrder . More... | |
List< CoordinateSet > | subsets (int maxOrder) |
Returns all subsets of the current coordinate set, whose cardinality is at most maxOrder . More... | |
List< CoordinateSet > | subsetsNotEmpty (int maxOrder) |
Returns all subsets of the current coordinate set, whose cardinality is at most maxOrder . More... | |
String | toString () |
Represents a set of coordinates.
Coordinate indices start at 0.
int cardinality | ( | ) |
Returns the cardinality of the current coordinate set.
Subclasses should override this method. The default implementation is inefficient.
boolean contains | ( | int | coord | ) |
Returns true
if the current set contains coordinate coord
.
Subclasses should override this method.
boolean containsAll | ( | CoordinateSet | cs | ) |
Returns true
if the current set contains all coordinates in cs
.
Subclasses should override this method. The default implementation is inefficient.
List<CoordinateSet> subsets | ( | ) |
Returns all subsets of the current coordinate set, whose cardinality is at most maxOrder
.
Includes the empty sets.
List<CoordinateSet> subsets | ( | int | maxOrder | ) |
Returns all subsets of the current coordinate set, whose cardinality is at most maxOrder
.
Includes the empty set.
List<CoordinateSet> subsetsNotEmpty | ( | ) |
Returns all subsets of the current coordinate set, whose cardinality is at most maxOrder
.
Does not include the empty set.
List<CoordinateSet> subsetsNotEmpty | ( | int | maxOrder | ) |
Returns all subsets of the current coordinate set, whose cardinality is at most maxOrder
.
Does not include the empty set.