Yes, put it in the neighbor list. In my current solution, I use a vector
as the data structure. It contains structs. Those structs contain
address, position, and other attributes, in your case, one of those
attributes would be the time (exact datatype is simtime_t, but not sure).
Kind regards,
Erik Becker
Am 24.02.2014 16:47, schrieb
5842...@qq.com:
> Very thankyou!!!
> I can understand what you mean~~~.But as you said "Also store a
> timestamp when a position of another vehicle was last updated."Where
> should i save the timestamp?Store in the neighbor list ?
> Please saidin a little more detail~~~
>
> Thank you in advance.
>
>
> Lei Cao
>
>
> On Sunday, February 23, 2014 9:48:49 PM UTC+8, Erik Becker wrote:
>
> A vehicle has to send a beacon every 2 seconds (or more frequently
> to allow for packets to get lost). Then your information will be 2
> seconds old (at most).
> Also store a timestamp when a position of another vehicle was last
> updated. When doing something with the data, consider every entry
> older than 2 seconds to be out of date, delete or ignore it.
>
> Hope this helps you.
>
> Erik Becker
>
> On Sunday, February 23, 2014 2:13:13 AM UTC+1,
5842...@qq.com wrote:
>
> I am doing a project about Vehicle to Vehicle
> communication,and each vehicle maintains a table that keep
> record the position of neighbor vehicles.(The imformation is
> transmit by Beacon message)But i dont know how to update this
> table every 2s to avoid outdated imformation .
>
> Please help me
>
> Thank you in advance.
>
> --
> You received this message because you are subscribed to the Google
> Groups "omnetpp" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
omnetpp+u...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.