Chinaunix首页 | 论坛 | 博客
  • 博客访问: 221263
  • 博文数量: 25
  • 博客积分: 4085
  • 博客等级: 上校
  • 技术积分: 585
  • 用 户 组: 普通用户
  • 注册时间: 2006-07-30 02:09
文章分类

全部博文(25)

文章存档

2011年(1)

2009年(2)

2008年(22)

我的朋友

分类: 系统运维

2008-03-28 10:05:47

op_ima_obj_pos_get() is the Kernel Procedure to obtain a node's position.Mobile site position evaluation is not continuously or regularly performed by the Simulation Kernel; it only performs evaluations when required by the Radio Transceiver Pipeline stages, when the position attributes are queried, or when this KP is invoked, thus reducing the computational overhead of a network with many mobile sites which communicate sparsely in time. In the case of vector-based mobile or satellite sites, site position is computed based on the bearing, ground speed, and ascent rate attributes.

So I do a test on this KP by configuring a network model like below. b has a traffic source and a wireless transmitter while a has a wireless receiver and a position reporter module.

At first the position reporter module executes each time a packet received from the wireless channel and obtaining and printing positions of the two nodes by calling op_ima_obj_pos_get(). The traffic source and wireless transceivers aim to involve the pipeline stages.



The output is like:

Next I change the models. No packets are transmitted at all. The position reporter module just executes at a regular interval. That's to say, call op_ima_obj_pos_get() at a regular interval. Below is the new output:










阅读(1338) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~