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
orTuples
.
See also
Methods
generate
()Generate the combinatorial sequence.
Accessor to the object’s name.
getId
()Accessor to the object’s id.
Accessor to the underlying implementation.
getName
()Accessor to the object’s name.
setName
(name)Accessor to the object’s name.
- __init__(*args)¶
Initialize self. See help(type(self)) for accurate signature.
- generate()¶
Generate the combinatorial sequence.
- getClassName()¶
Accessor to the object’s name.
- Returns
- class_namestr
The object class name (object.__class__.__name__).
- getId()¶
Accessor to the object’s id.
- Returns
- idint
Internal unique identifier.
- getImplementation()¶
Accessor to the underlying implementation.
- Returns
- implImplementation
The implementation class.
- getName()¶
Accessor to the object’s name.
- Returns
- namestr
The name of the object.
- setName(name)¶
Accessor to the object’s name.
- Parameters
- namestr
The name of the object.