1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
3 * Copyright (c) 2005,2006 INRIA
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
7 * published by the Free Software Foundation;
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 * Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
21 #ifndef SIMULATOR_IMPL_H
22 #define SIMULATOR_IMPL_H
24 #include "event-impl.h"
27 #include "ns3/object.h"
28 #include "ns3/object-factory.h"
35 class SimulatorImpl : public Object
38 virtual void Destroy () = 0;
39 virtual bool IsFinished (void) const = 0;
40 virtual Time Next (void) const = 0;
41 virtual void Stop (void) = 0;
42 virtual EventId Schedule (Time const &time, EventImpl *event) = 0;
43 virtual EventId ScheduleNow (EventImpl *event) = 0;
44 virtual EventId ScheduleDestroy (EventImpl *event) = 0;
45 virtual void Remove (const EventId &ev) = 0;
46 virtual void Cancel (const EventId &ev) = 0;
47 virtual bool IsExpired (const EventId &ev) const = 0;
48 virtual void Run (void) = 0;
49 virtual void RunOneEvent (void) = 0;
50 virtual Time Now (void) const = 0;
51 virtual Time GetDelayLeft (const EventId &id) const = 0;
52 virtual Time GetMaximumSimulationTime (void) const = 0;
53 virtual void SetScheduler (ObjectFactory schedulerFactory) = 0;
58 #endif /* SIMULATOR_IMPL_H */