Package topo :: Package base :: Module simulation :: Class PeriodicEventSequence
[hide private]
[frames] | no frames]

Class PeriodicEventSequence

source code


An EventSequence that reschedules itself periodically

Takes a period argument that determines how often the sequence will be scheduled. If the length of the sequence is longer than the period, then the length of the sequence will be used as the period.

Instance Methods [hide private]
 
__init__(self, time, period, sequence)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__call__(self, sim)
Cause some computation to be performed, deliver a message, etc., as appropriate for each subtype of Event.
source code
 
__repr__(self)
x.__repr__() <==> repr(x)
source code

Inherited from Event: __cmp__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, time, period, sequence)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

__call__(self, sim)
(Call operator)

source code 
Cause some computation to be performed, deliver a message, etc., as appropriate for each subtype of Event. Should be passed the simulation object, to allow access to .time() etc.
Overrides: Event.__call__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 
x.__repr__() <==> repr(x)
Overrides: object.__repr__
(inherited documentation)