A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
simulator-impl.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2005,2006 INRIA
4
*
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;
8
*
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.
13
*
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
17
*
18
* Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
19
*/
20
21
#ifndef SIMULATOR_IMPL_H
22
#define SIMULATOR_IMPL_H
23
24
#include "
event-impl.h
"
25
#include "
event-id.h
"
26
#include "
nstime.h
"
27
#include "
object.h
"
28
#include "
object-factory.h
"
29
#include "
ptr.h
"
30
31
namespace
ns3 {
32
33
class
Scheduler;
34
35
class
SimulatorImpl
:
public
Object
36
{
37
public
:
38
static
TypeId
GetTypeId
(
void
);
39
47
virtual
void
Destroy
() = 0;
53
virtual
bool
IsFinished
(
void
)
const
= 0;
59
virtual
void
Stop
(
void
) = 0;
67
virtual
void
Stop
(
Time
const
&time) = 0;
76
virtual
EventId
Schedule
(
Time
const
&time,
EventImpl
*event) = 0;
86
virtual
void
ScheduleWithContext
(uint32_t context,
Time
const
&time,
EventImpl
*event) = 0;
94
virtual
EventId
ScheduleNow
(
EventImpl
*event) = 0;
102
virtual
EventId
ScheduleDestroy
(
EventImpl
*event) = 0;
114
virtual
void
Remove
(
const
EventId
&ev) = 0;
127
virtual
void
Cancel
(
const
EventId
&ev) = 0;
140
virtual
bool
IsExpired
(
const
EventId
&ev)
const
= 0;
149
virtual
void
Run
(
void
) = 0;
153
virtual
Time
Now
(
void
)
const
= 0;
160
virtual
Time
GetDelayLeft
(
const
EventId
&
id
)
const
= 0;
167
virtual
Time
GetMaximumSimulationTime
(
void
)
const
= 0;
175
virtual
void
SetScheduler
(
ObjectFactory
schedulerFactory) = 0;
180
virtual
uint32_t
GetSystemId
()
const
= 0;
184
virtual
uint32_t
GetContext
(
void
)
const
= 0;
185
};
186
187
}
// namespace ns3
188
189
#endif
/* SIMULATOR_IMPL_H */
ns3::Time
keep track of time values and allow control of global simulation resolution
Definition:
nstime.h:81
ns3::SimulatorImpl::ScheduleWithContext
virtual void ScheduleWithContext(uint32_t context, Time const &time, EventImpl *event)=0
ns3::SimulatorImpl::GetTypeId
static TypeId GetTypeId(void)
Definition:
simulator-impl.cc:9
event-impl.h
ns3::SimulatorImpl::IsExpired
virtual bool IsExpired(const EventId &ev) const =0
ptr.h
ns3::SimulatorImpl::Now
virtual Time Now(void) const =0
object-factory.h
ns3::SimulatorImpl::ScheduleNow
virtual EventId ScheduleNow(EventImpl *event)=0
ns3::SimulatorImpl::SetScheduler
virtual void SetScheduler(ObjectFactory schedulerFactory)=0
ns3::SimulatorImpl::Run
virtual void Run(void)=0
ns3::SimulatorImpl::GetMaximumSimulationTime
virtual Time GetMaximumSimulationTime(void) const =0
ns3::SimulatorImpl::IsFinished
virtual bool IsFinished(void) const =0
ns3::SimulatorImpl::GetDelayLeft
virtual Time GetDelayLeft(const EventId &id) const =0
nstime.h
ns3::SimulatorImpl::ScheduleDestroy
virtual EventId ScheduleDestroy(EventImpl *event)=0
ns3::SimulatorImpl::Cancel
virtual void Cancel(const EventId &ev)=0
ns3::SimulatorImpl::Schedule
virtual EventId Schedule(Time const &time, EventImpl *event)=0
object.h
ns3::ObjectFactory
instantiate subclasses of ns3::Object.
Definition:
object-factory.h:39
ns3::EventImpl
a simulation event
Definition:
event-impl.h:39
ns3::SimulatorImpl::Remove
virtual void Remove(const EventId &ev)=0
ns3::EventId
an identifier for simulation events.
Definition:
event-id.h:46
ns3::SimulatorImpl::Destroy
virtual void Destroy()=0
ns3::SimulatorImpl::Stop
virtual void Stop(void)=0
ns3::SimulatorImpl::GetSystemId
virtual uint32_t GetSystemId() const =0
ns3::Object
a base class which provides memory management and object aggregation
Definition:
object.h:63
event-id.h
ns3::SimulatorImpl::GetContext
virtual uint32_t GetContext(void) const =0
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:49
ns3::SimulatorImpl
Definition:
simulator-impl.h:35
src
core
model
simulator-impl.h
Generated on Sat Nov 16 2013 16:17:37 for ns-3 by
1.8.5