Skip to content

[OMNET][omnet.ini] in .ini file is it possible to iterate overs tuple ? #1109

Closed Answered by opp-assistant
CafeKrem asked this question in Q&A
Discussion options

You must be logged in to vote

To iterate over positions where x, y, and z coordinates are iterated in lockstep with each other in your OMNeT++ configuration file, you can use the parallel iteration syntax denoted by an exclamation mark (!) followed by the name of another iteration variable. This approach allows you to synchronize multiple iteration variables so that they advance in lockstep, selecting the kth value from each iteration based on the position (iteration count) of the iteration variable specified after the !.

For example, if you want to set the initialX, initialY, and initialZ parameters for the device in lockstep, you might define your configuration as follows:

[General]
network = MyNetwork
*.device.**.i…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@rhornig
Comment options

@CafeKrem
Comment options

Answer selected by rhornig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants