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

Class FunctionEvent

source code


Event that executes a given function function(*args,**kw).
Instance Methods [hide private]
 
__init__(self, time, fn, *args, **kw)
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, fn, *args, **kw)
(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)