OMNeT++/OMNEST Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000626OMNeT++simulation kernelpublic2013-01-30 17:222013-12-06 17:26
Reporterrhornig 
Assigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
StatusnewResolutionopen 
PlatformOSOS Version
Product Version4.2 
Target VersionFixed in Version 
Summary0000626: A way to specify a distribution that results in events at specific time values
DescriptionIn models it is often required that a source should generate messages at specific point sin time. Models usually use an "interArrivalTime" parameter to specify a distribution. It would be great to have a function that would provide just the right distribution to have the proper values so the evenets will be generated correctly:

**.interArrivalTime = exactlyAt(5s, 20s, 67s, 200s)

Internally this should use simTime to figure out the next event and calculate and return the dT until that time...
Additional InformationA more generic solution:

Implement the following function:

simtime firstGreaterThan(base, a1, a2, a3 , a4 ...)

this function would return the first "a" from the series which is greater than "base"

after this I would write something like this:
**.sendTime = firstGreaterThan(simTime(), 5s, 50s, 100s) - simTime()
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0000855)
rhornig (administrator)
2013-12-06 17:26

A better name:
**.interArrivalTime = timeUntil(5s, 20s, 67s, 200s)

- Issue History
Date Modified Username Field Change
2013-01-30 17:22 rhornig New Issue
2013-12-06 17:26 rhornig Note Added: 0000855


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker