cmonkey.schedule
index
/home/weiju/Projects/ISB/cmonkey-python/cmonkey/schedule.py

schedule.py - cMonkey scheduling module
 
Scheduling is a central feature in cMonkey and this module attempts to
make it simple and flexible to create schedules. Schedules are typically
defined in a .ini file.

 
Classes
       
CompositeSchedule
OneTimeSchedule
RepeatingSchedule

 
class CompositeSchedule
    A composite of one or more schedules. It asks its sub schedules
 
  Methods defined here:
__call__(self, iteration)
__init__(self, schedules)
__repr__(self)
__str__(self)

 
class OneTimeSchedule
    A basic building block of a schedule: runs only in one iteration
 
  Methods defined here:
__call__(self, iteration)
__init__(self, iteration)
__repr__(self)
__str__(self)

 
class RepeatingSchedule
    A basic building block of a schedule: start and interval
 
  Methods defined here:
__call__(self, iteration)
__init__(self, start, interval)
__repr__(self)
__str__(self)

 
Functions
       
make_schedule(schedulestr)
creates a schedule for the specified schedule string.
The following formats is supported
<schedule>:[<schedule>]*
where schedule is one of
 
start,interval - repeating
iteration - one-time