ORBIT-USER: Documentation for sample script

Max Ott max at semandex.net
Fri Feb 9 22:38:22 EST 2007


You don't need the require. One day I will go through all the
repository files and remove all the initial debug code which gets
blindly copied to new files.

This rather cryptic syntax (which will be changed to something
hopefully more self explanatory) says "collect parameters 'pkt_seqno',
'flow_no', ... from measurment point 'receiverport' and send a
measurment packet every '1' second (Filter::SAMPLE_SIZE). When doing
this, use the first collected value within that interval for every
parameter, except for 'rcvd_pkt_size' where the sum (Filter::SUM) over
all values should be used.

I'm not sure if there is a list of all the OML operators on the Wiki somewhere.

Note, the alternative to 'Filter::TIME' is 'Filter::SAMPLE', where the
SAMPLE_SIZE defines over how many actual measurements the filters
should operate.

On 2/7/07, Arinto Murdopo <arinto at gmail.com> wrote:
> Dear All,
>
> Here is one of the section in sample script tutorial1a.rb
>
> otr.addMeasurement('receiverport',Filter::TIME,
>   {Filter::SAMPLE_SIZE => 1 },
>   [
>     ['pkt_seqno'],
>     ['flow_no'],
>     ['rcvd_pkt_size', Filter::SUM],
>     ['rx_timestamp'],
>     ['rssi'],
>      ['xmitrate']
>   ]
>   )
>
> where I can find the documentation of Filter above? In the beginning of the
> sampel script, it requires 'handler/filter'. Where I can find this
> 'handler/filter' ?
>
> Thank you
>
> arinto
>



More information about the orbit-user mailing list