Recently Updated Pages
Two nodes: Summary
Sending messages from one node to another is simple. You need to define gates in the nodes, conne...
Introduction
This tutorial is organized into three chapters: Chapter 1 will cov...
Random behavior
It is relatively simple to schedule a message randomly in OMNeT++. In fact, the kernel offers you...
Different self messages
We can of course define and use also different self messages, for example, to switch to blue or t...
State variables
State variables are a very handy tool to track the internal state of a module: for example, to co...
Exploring the code
Let's explore the code you just imported. When you expand all of the folders, you will no...
Exercise 2: Discussion
The difference is obvious this time: the message keeps turning back and the simulation never stop...
Exercise 2: Resend the message
Now, let's us resend the message to ourselves. In handleMessage(), instead of deleting the messag...
Exercise 1: Discussion
In fact, you should not see any difference. As explained in discrete event simulation, it doesn't...
Exercise 1: Play with the self message
Try to change the scheduled time for the message first to 20, then to 10000. Re-run the simulatio...
Creating and handling a self message
Creating and handling a self message In the last section, we have explored the code of our simpl...
Setup a simple simulation: Summary
Let us summarize what we have until now. We set up our very first simulation, which consists of a...
Excursion: Discrete events and simulation time
This is an excursion from the tutorial into the theory of discrete events and sim...
Installing and running OMNeT++
Step 1. Install and run OMNeT++ Download the current OMNeT++ version and install i...