next up previous contents index
Next: 4.1 Simulator Initialization Up: 2. Simulator Basics Previous: 2. Simulator Basics

   
4. The Class Simulator

The overall simulator is described by a Tcl Simulator../ns-2/ns-lib.h. It provides a set of interfaces for configuring a simulation and for choosing the type of event scheduler used to drive the simulation. A simulation script generally begins by creating an instance of this class and calling various methods to create nodes, topologies, and configure other aspects of the simulation. A subclass of Simulator called OldSim is used to support  v1 backward compatibility.

The procedures and functions described in this chapter can be found in tcl/lib/ns-lib.tcl, scheduler.{cc,h}, and, heap.h.



 


2000-08-24