Class Simulation

java.lang.Object
  |
  +--Simulation

public class Simulation
extends java.lang.Object

The Simulation class has static methods for running a network simulation. The main() method provides the main program for a simulation. The getCurrentTime() method provides access to the simulation time. The getEventQueue() method provides access to the event queue for adding new events. The log() method provides timestamped output functionality.


Method Summary
static int getCurrentTime()
          Simulation.getCurrentTime() returns the current time for this simulation.
static EventQueue getEventQueue()
          Simulation.getEventQueue() returns the EventQueue used in this simulation.
static void log(java.lang.String msg)
          Simulation.log(msg) sends msg, prefixed with a timestamp, to standard output.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getEventQueue

public static EventQueue getEventQueue()
Simulation.getEventQueue() returns the EventQueue used in this simulation.


getCurrentTime

public static int getCurrentTime()
Simulation.getCurrentTime() returns the current time for this simulation.


log

public static void log(java.lang.String msg)
Simulation.log(msg) sends msg, prefixed with a timestamp, to standard output.


main

public static void main(java.lang.String[] args)