OLD | NEW |
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2008 University of Washington | 3 * Copyright (c) 2008 University of Washington |
4 * | 4 * |
5 * This program is free software; you can redistribute it and/or modify | 5 * This program is free software; you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 2 as | 6 * it under the terms of the GNU General Public License version 2 as |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 virtual EventId ScheduleDestroy (EventImpl *event); | 62 virtual EventId ScheduleDestroy (EventImpl *event); |
63 virtual void Remove (const EventId &ev); | 63 virtual void Remove (const EventId &ev); |
64 virtual void Cancel (const EventId &ev); | 64 virtual void Cancel (const EventId &ev); |
65 virtual bool IsExpired (const EventId &ev) const; | 65 virtual bool IsExpired (const EventId &ev) const; |
66 virtual void Run (void); | 66 virtual void Run (void); |
67 virtual void RunOneEvent (void); | 67 virtual void RunOneEvent (void); |
68 virtual Time Now (void) const; | 68 virtual Time Now (void) const; |
69 virtual Time GetDelayLeft (const EventId &id) const; | 69 virtual Time GetDelayLeft (const EventId &id) const; |
70 virtual Time GetMaximumSimulationTime (void) const; | 70 virtual Time GetMaximumSimulationTime (void) const; |
71 virtual void SetScheduler (ObjectFactory schedulerFactory); | 71 virtual void SetScheduler (ObjectFactory schedulerFactory); |
| 72 virtual uint32_t GetSystemId (void) const;· |
72 virtual uint32_t GetContext (void) const; | 73 virtual uint32_t GetContext (void) const; |
73 | 74 |
74 void ScheduleRealtimeWithContext (uint32_t context, Time const &time, EventImp
l *event); | 75 void ScheduleRealtimeWithContext (uint32_t context, Time const &time, EventImp
l *event); |
75 void ScheduleRealtime (Time const &time, EventImpl *event); | 76 void ScheduleRealtime (Time const &time, EventImpl *event); |
76 void ScheduleRealtimeNowWithContext (uint32_t context, EventImpl *event); | 77 void ScheduleRealtimeNowWithContext (uint32_t context, EventImpl *event); |
77 void ScheduleRealtimeNow (EventImpl *event); | 78 void ScheduleRealtimeNow (EventImpl *event); |
78 Time RealtimeNow (void) const; | 79 Time RealtimeNow (void) const; |
79 | 80 |
80 void SetSynchronizationMode (RealtimeSimulatorImpl::SynchronizationMode mode); | 81 void SetSynchronizationMode (RealtimeSimulatorImpl::SynchronizationMode mode); |
81 RealtimeSimulatorImpl::SynchronizationMode GetSynchronizationMode (void) const
; | 82 RealtimeSimulatorImpl::SynchronizationMode GetSynchronizationMode (void) const
; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 | 116 |
116 /** | 117 /** |
117 * The maximum allowable drift from real-time in SYNC_HARD_LIMIT mode. | 118 * The maximum allowable drift from real-time in SYNC_HARD_LIMIT mode. |
118 */ | 119 */ |
119 Time m_hardLimit; | 120 Time m_hardLimit; |
120 }; | 121 }; |
121 | 122 |
122 } // namespace ns3 | 123 } // namespace ns3 |
123 | 124 |
124 #endif /* REALTIME_SIMULATOR_IMPL_H */ | 125 #endif /* REALTIME_SIMULATOR_IMPL_H */ |
OLD | NEW |