Peach :: group :: GroupForever :: Class GroupForever
[hide private]

Class GroupForever

source code


This group will take a GroupSequence and perform random mutations on how generators are incremented. This group understands that a GroupSequence can have other GroupSequences in it.

Instance Methods [hide private]
 
__init__(self, groupSequence)
Create a new Group object.
source code
 
addGroup(self, group) source code
 
_resetAll(self) source code
 
_pickStuff(self)
Pick some groups to play with
source code
 
_findAllGroups(self, groupSequence) source code
 
next(self)
Iterate all Generators to next value.
source code
 
reset(self)
Resets all Generators to there initial state.
source code

Inherited from Group: __iter__, addGenerator, addGenerators, getAllGenerators, getName, removeGenerator, setName

Class Variables [hide private]

Inherited from Group (private): _generators, _identity, _name

Method Details [hide private]

__init__(self, groupSequence)
(Constructor)

source code 

Create a new Group object.

Parameters:
  • name - Name of Group object. Not currently used.
Overrides: Group.__init__
(inherited documentation)

next(self)

source code 

Iterate all Generators to next value.

From Python docs on next():

The intention of the protocol is that once an iterator's next() method raises StopIteration, it will continue to do so on subsequent calls. Implementations that do not obey this property are deemed broken. (This constraint was added in Python 2.3; in Python 2.2, various iterators are broken according to this rule.)

For Groups, please use the GroupCompleted exception instead of StopIteration (its a subclass).

Overrides: Group.next
(inherited documentation)

reset(self)

source code 

Resets all Generators to there initial state.

Overrides: Group.reset
(inherited documentation)