Skip to main content

Recently Updated Pages

Two nodes: Summary

OMNeT++ Single Node Tutorial Chapter 3: Two nodes

Sending messages from one node to another is simple. You need to define gates in the nodes, conne...

Updated 1 year ago by Anna Förster

Introduction

OMNeT++ Single Node Tutorial

This tutorial is organized into three chapters: Chapter 1 will cov...

Updated 1 year ago by Anna Förster

Random behavior

OMNeT++ Single Node Tutorial Chapter 2: Self messages

It is relatively simple to schedule a message randomly in OMNeT++. In fact, the kernel offers you...

Updated 1 year ago by Anna Förster

Different self messages

OMNeT++ Single Node Tutorial Chapter 2: Self messages

We can of course define and use also different self messages, for example, to switch to blue or t...

Updated 1 year ago by Anna Förster

State variables

OMNeT++ Single Node Tutorial Chapter 2: Self messages

State variables are a very handy tool to track the internal state of a module: for example, to co...

Updated 1 year ago by Anna Förster

Exploring the code

OMNeT++ Single Node Tutorial Chapter 1: Setup a simple simulation

Let's explore the code you just imported. When you expand all of the folders, you will no...

Updated 1 year ago by Anna Förster

Exercise 2: Discussion

OMNeT++ Single Node Tutorial Chapter 2: Self messages

The difference is obvious this time: the message keeps turning back and the simulation never stop...

Updated 1 year ago by Anna Förster

Exercise 2: Resend the message

OMNeT++ Single Node Tutorial Chapter 2: Self messages

Now, let's us resend the message to ourselves. In handleMessage(), instead of deleting the messag...

Updated 1 year ago by Anna Förster

Exercise 1: Discussion

OMNeT++ Single Node Tutorial Chapter 2: Self messages

In fact, you should not see any difference. As explained in discrete event simulation, it doesn't...

Updated 1 year ago by Anna Förster

Exercise 1: Play with the self message

OMNeT++ Single Node Tutorial Chapter 2: Self messages

Try to change the scheduled time for the message first to 20, then to 10000. Re-run the simulatio...

Updated 1 year ago by Anna Förster

Creating and handling a self message

OMNeT++ Single Node Tutorial Chapter 2: Self messages

Creating and handling a self message In the last section, we have explored the code of our simpl...

Updated 1 year ago by Anna Förster

Setup a simple simulation: Summary

OMNeT++ Single Node Tutorial Chapter 1: Setup a simple simulation

Let us summarize what we have until now. We set up our very first simulation, which consists of a...

Updated 1 year ago by Anna Förster

Excursion: Discrete events and simulation time

OMNeT++ Single Node Tutorial Chapter 1: Setup a simple simulation

This is an excursion from the tutorial into the theory of discrete events and sim...

Updated 1 year ago by Anna Förster

Installing and running OMNeT++

OMNeT++ Single Node Tutorial Chapter 1: Setup a simple simulation

Step 1. Install and run OMNeT++ Download the current OMNeT++ version and install i...

Updated 1 year ago by Anna Förster