Make Application::Start/Stop times relative, Simulator::StopAt(time) renamed to Simulator::Stop(time) and time also made relative, to improve consistency of the API which uses relative times everywhere else. Closes bug #191.

This commit is contained in:
Gustavo J. A. M. Carneiro committed 2008-05-29 11:45:57 +01:00
1 parent 0824fbca51
commit 4e69d6654f
11 files changed
+37 -37

No files matched your search

+3 -5
View File
@@ -108,15 +108,13 @@ void Application::StopApplication()
// Private helpers
void Application::ScheduleStart (const Time &startTime)
{
m_startEvent = Simulator::Schedule(startTime -
Simulator::Now(),
&Application::StartApplication, this);
m_startEvent = Simulator::Schedule (startTime,
&Application::StartApplication, this);
}
void Application::ScheduleStop (const Time &stopTime)
{
m_stopEvent = Simulator::Schedule(stopTime -
Simulator::Now(),
m_stopEvent = Simulator::Schedule (stopTime,
&Application::StopApplication, this);
}