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) |