# HG changeset patch # User Mathieu Lacage # Date 1215013077 25200 # Node ID 30750f23d51a14506a9583e1063045e44e60ec48 # Parent 95bbf601167daf95f8428cb7c61719c17ff8ecc6 export new methods for language bindings diff -r 95bbf601167d -r 30750f23d51a src/simulator/simulator.h --- a/src/simulator/simulator.h Wed Jul 02 08:33:47 2008 -0700 +++ b/src/simulator/simulator.h Wed Jul 02 08:37:57 2008 -0700 @@ -554,6 +554,31 @@ * The returned value will always be bigger than or equal to Simulator::Now. */ static Time GetMaximumSimulationTime (void); + /** + * \param time delay until the event expires + * \param event the event to schedule + * \returns a unique identifier for the newly-scheduled event. + * + * This method will be typically used by language bindings + * to delegate events to their own subclass of the EventImpl base class. + */ + static EventId Schedule (Time const &time, const Ptr &event); + /** + * \param event the event to schedule + * \returns a unique identifier for the newly-scheduled event. + * + * This method will be typically used by language bindings + * to delegate events to their own subclass of the EventImpl base class. + */ + static EventId ScheduleDestroy (const Ptr &event); + /** + * \param event the event to schedule + * \returns a unique identifier for the newly-scheduled event. + * + * This method will be typically used by language bindings + * to delegate events to their own subclass of the EventImpl base class. + */ + static EventId ScheduleNow (const Ptr &event); private: Simulator (); ~Simulator (); @@ -594,9 +619,6 @@ static Ptr MakeEvent (void (*f) (U1,U2,U3,U4,U5), T1 a1, T2 a2, T3 a3, T4 a4, T5 a5); static Ptr GetPriv (void); - static EventId Schedule (Time const &time, const Ptr &event); - static EventId ScheduleDestroy (const Ptr &event); - static EventId ScheduleNow (const Ptr &event); static Ptr m_priv; };