riebl / artery

OMNeT++ V2X simulation framework for ETSI ITS-G5
GNU General Public License v2.0
203 stars 129 forks source link

LocalDynamicMap #244

Closed lukne541 closed 2 years ago

lukne541 commented 2 years ago

I want to analyze consecutive CAMs. I have only found LocalDynamicMap as a method of doing this, however count is insufficient as I need access to all data in the CAMs. Is there a way of doing this that I have missed, or should I implement something myself?

riebl commented 2 years ago

The LocalDynamicMap already stores the full CAMs as CaObject in its AwarenessEntry. You should be able to add a query method to LocalDynamicMap without much trouble. For example, you could use the count method as a blueprint but return a list of matching AwarenessEntry objects. I would be happy to accept a pull request implementing such a query method.