How create a node with three protocol layers in OMNET++ - omnet++

i need to create two nodes which represents two devicews with three protocol layers (Physical, MAC and Application layer).
I am new on OMNET++. Hope to get help from you guys.
TIA

I think that this image answers your question:
(Veins - the open source vehicular network simulation framework by Christoph Sommer, David Eckhoff, Alexander Brummer, Dominik S. Buse,
Florian Hagenauer, Stefan Joerer and Michele Segata)
Also the one in veins main page says it but maybe is not listing the layers as in the other picture: https://veins.car2x.org/documentation/veins-arch.png
So when we create a new "veins node" we basically are already implementing at least two of those layers. Just consider the Erlangen example, inside homonymous folder inside veins framework and check from there how it's done.

Related

Veins V2V only without RSU

Which of the Veins version uses vehicle to vehicle communication (car) only without RSU. The current veins uses RSU, any way to remove RSU and use V2V (CAR) only.
Many thanks
How to add and remove modules from a simulation is documented in the user manual and the topic of lesson one in the tic toc tutorial. From a quick look at the top level .ned file of the simulation you should also see the line where the RSU is instantiated. Simply delete this line.

How do I take actions every step in Veins?

I am using Veins to implement a scenario in which I shall update a vehicle's route every time step characterized by the step selfmsg. In which module shall I find this behavior? I want to add some more functions to this module in the application layer by extending it. Is it possible to do that?
You can take advantage of the fact that SUMO updates the positions of all vehicles at exactly the same time. By extension, Veins (I am assuming you are using version 4a2) will update the OMNeT++ positions of all vehicles at exactly the same time. See the Veins tutorial demo application for how to execute code whenever the position changes. Indeed, this will make sure that all code is running within in a single OMNeT++ event, which seems to be what you want.

creating a modified graphhopper instance with updated edge weights

How can I create multiple graphs each with their own set of edge weights? For example, NY area with edge weights at 12AM, 6AM, 12PM, etc.
How can I update a graph with changes and save my changes to be loaded later. Is this possible? Or is there another approach? My direction was to edit the weighting code on the github under the core docs. To use a previous S/O answer, regarding dynamic edge weights. Where does this code get placed?
Also, brand new to this project and have not used a project environment as such (maven?). Can someone give me some pointers on how to use the MyGraphhopper extended class with overridding methods? What environment would I need to install on OSX to see the similar core or web interface?
If the above is not possible via web interface, how could I run queries using the command line?
Thanks,

Need clarification on MutationObserver APIs

W3C is proposing MutationObserver APIs to replace Mutation Event APIs. More info here : http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#mutation-observers.
I have a newbie question about the new APIs
In the MutationRecord, what's the purpose of previousSibling and nextSibling? Where do they point in case of multiple addedNodes and removedNodes?
If there are multiple added nodes and removed nodes, how to determine the order in which they happened?
Can the same node be in addedNodes and removedNodes, e.g. a node get added and immediately removed? If yes, can the same node appear multiple times in any category, e.g. node got added, removed and added again? If yes, #2 question above becomes more relevant.
FYI, these APIs just showed up on Firefox and Webkit nightly builds (in addition to being present in Chrome).
Thanks, Sunil
I found a discussion here which provides some of the answers : http://lists.w3.org/Archives/Public/public-webapps/2011JulSep/1622.html.

What is the way to visually outline application logic flow?

We are looking for a way to visually describe to each other the logic flow of particular module or the application itself. I constantly stumble upon different block diagrams here and there, but still not sure if this is any kind of standard and has any particular name. What approach other teams or companies usually use in such cases?
You can create flow diagrams using Dia or Microsoft Visio. Dia is free though and quite decent
http://dia-installer.de/
UML contains some diagram types that matches what you seek.
http://en.wikipedia.org/wiki/Activity_diagram
http://en.wikipedia.org/wiki/Sequence_diagram
http://en.wikipedia.org/wiki/Unified_Modeling_Language

Resources