On Mar 7, 2007, at 1:46 PM, fatima cabot wrote:
Hi again. I would like to perform real time simulation.
Would it be possible for a python application (interacting with
TOSSIM) to know the time stamp when next event is going to occur?
What I want to say is that TOSSIM must have an event queue from
where events are dispatched. Can you know on python the time where
next event will be dispatched?
The current interfaces support the current event time but not the
future event time. This is a good point -- you should be able to get
the future time for this purpose. I'll try to include it in 2.0.1.
Adding functionality to get the future time wouldn't be too much
work. Just add a function to
the Tossim object in tossim.h and tossim.c, and a C support function
in sim_tossim.h and sim_tossim.h that call sim_queue_peek_time. Then
regenerate the SWIG python interface.
Phil
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help