Package sulley :: Module blocks :: Class request
[show private | hide private]
[frames | no frames]

Type request

object --+    
         |    
      node --+
             |
            request


Method Summary
  __init__(self, name)
Top level container instantiated by s_initialize().
  mutate(self)
Integer num_mutations(self)
Determine the number of repetitions we will be making.
  pop(self)
The last open block was closed, so pop it off of the block stack.
  push(self, item)
Push an item into the block structure.
  render(self)
  reset(self)
Reset every block and primitives mutant state under this request.
Sulley Primitives walk(self, stack)
Recursively walk through and yield every primitive and block on the request stack.
    Inherited from node
String render_node_gml(self, graph)
Render a node description suitable for use in a GML file using the set internal attributes.
pydot.Node render_node_graphviz(self, graph)
Render a node suitable for use in a Pydot graph using the set internal attributes.
String render_node_udraw(self, graph)
Render a node description suitable for use in a uDraw file using the set internal attributes.
String render_node_udraw_update(self)
Render a node update description suitable for use in a uDraw file using the set internal attributes.
    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)

Class Variable Summary
    Inherited from node
int border_color = 15658734                                                              
int color = 15661055                                                              
float gml_height = 0.0                                                                   
float gml_line_width = 1.0                                                                   
str gml_pattern = '1'
int gml_stipple = 1                                                                     
str gml_type = 'rectangle'
float gml_width = 0.0                                                                   
float gml_width_shape = 1.0                                                                   
int id = 0                                                                     
str label = ''
int number = 0                                                                     
str shape = 'box'
NoneType udraw_image = None                                                                  
str udraw_info = ''

Method Details

__init__(self, name)
(Constructor)

Top level container instantiated by s_initialize(). Can hold any block structure or primitive. This can essentially be thought of as a super-block, root-block, daddy-block or whatever other alias you prefer.
Parameters:
name - Name of this request
           (type=String)
Overrides:
sulley.pgraph.node.node.__init__

num_mutations(self)

Determine the number of repetitions we will be making.
Returns:
Number of mutated forms this primitive can take.
           (type=Integer)

pop(self)

The last open block was closed, so pop it off of the block stack.

push(self, item)

Push an item into the block structure. If no block is open, the item goes onto the request stack. otherwise, the item goes onto the last open blocks stack.

reset(self)

Reset every block and primitives mutant state under this request.

walk(self, stack=None)

Recursively walk through and yield every primitive and block on the request stack.
Returns:
Sulley Primitives
           (type=Sulley Primitives)

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