Re: TimeOuts
2009-08-05 08:42:43 GMT
> Is it possible to signal SimEvents at some specific time?
I'm very new to Simpy, but here's my initial idea on signalling events at a specific time.
Maybe you could use the waituntil synchronization feature with the condition function using now() to test the current time against a specified value? Then when it matches, fire an event or perform the desired action.
e.g.
def run(self):
while True:
yield waituntil, self, time135
# do something
See:“waituntil”synchronization
Good luck,
In the SimPy manual, in the section on SimEvents it gives a description
of yield waitevent,self <events part> and then gives a description of
<events part> with examples. Both the examples for a tuple and a list
of SimEvent objects include and object called TimeOut. There are no
other references to TimeOuts that I can find. How do I create TimeOut
event objects? Is it possible to signal SimEvents at some specific time?
Thanks,
Richard.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Simpy-users mailing list
Simpy-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/simpy-users
------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________ Simpy-users mailing list Simpy-users <at> lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/simpy-users
RSS Feed