Package sulley :: Module primitives :: Class group
[show private | hide private]
[frames | no frames]

Type group

    object --+    
             |    
base_primitive --+
                 |
                group


Method Summary
  __init__(self, name, values)
This primitive represents a list of static values, stepping through each one on mutation.
False mutate(self)
Move to the next item in the values list.
Integer num_mutations(self)
Number of values in this primitive.
    Inherited from base_primitive
Integer exhaust(self)
Exhaust the possible mutations for this primitive.
  render(self)
Nothing fancy on render, simply return the value.
  reset(self)
Reset this primitive to the starting mutation state.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Method Details

__init__(self, name, values)
(Constructor)

This primitive represents a list of static values, stepping through each one on mutation. You can tie a block to a group primitive to specify that the block should cycle through all possible mutations for *each* value within the group. The group primitive is useful for example for representing a list of valid opcodes.
Parameters:
name - Name of group
           (type=String)
values - List of possible raw values this group can take.
           (type=List or raw data)
Overrides:
sulley.primitives.base_primitive.__init__

mutate(self)

Move to the next item in the values list.
Returns:
False
           (type=False)
Overrides:
sulley.primitives.base_primitive.mutate

num_mutations(self)

Number of values in this primitive.
Returns:
Number of values in this primitive.
           (type=Integer)
Overrides:
sulley.primitives.base_primitive.num_mutations

Generated by Epydoc 2.1 on Fri Jul 27 17:40:03 2007 http://epydoc.sf.net