CombinatorialGenerator

class CombinatorialGenerator(*args)

Combinatorial generator base class.

Available constructors:

CombinatorialGenerator()

CombinatorialGenerator(combinatorialGeneratorImp)

Parameters
combinatorialGeneratorImpCombinatorialGeneratorImplementation

An implementation of a combinatorial generator which is provided by Combinations, KPermutations or Tuples.

Methods

generate(self)

Generate the combinatorial sequence.

getClassName(self)

Accessor to the object’s name.

getId(self)

Accessor to the object’s id.

getImplementation(self, \*args)

Accessor to the underlying implementation.

getName(self)

Accessor to the object’s name.

setName(self, name)

Accessor to the object’s name.

setImplementation

__init__(self, *args)

Initialize self. See help(type(self)) for accurate signature.

generate(self)

Generate the combinatorial sequence.

Returns
indicesColcollection of Indices

The collection of all the possible values of the combinatorial generator as a set of non-negative integer values stored into an Indices.

getClassName(self)

Accessor to the object’s name.

Returns
class_namestr

The object class name (object.__class__.__name__).

getId(self)

Accessor to the object’s id.

Returns
idint

Internal unique identifier.

getImplementation(self, *args)

Accessor to the underlying implementation.

Returns
implImplementation

The implementation class.

getName(self)

Accessor to the object’s name.

Returns
namestr

The name of the object.

setName(self, name)

Accessor to the object’s name.

Parameters
namestr

The name of the object.