This plugin adds the new collector type. It actually doesn't collect anything, but generates randomly generated values. The main purpose of this plugin is testing various aspects of RRFW, and particularly its modular Collector design.
Unpack RRFW main distribution and the plugin in some directories. From RRFW distribution directory, run
./configure --with-plugins=../rrfw-plugin-randomcollector-0.0.1 make install
After RRFW installation has finished, add the following lines to your rrfw-siteconfig.pl file:
push( @RRFW::Collector::loadModules, 'RRFW::Collector::Random' ); push( @RRFW::Validator::loadLeafValidators, 'RRFW::Collector::Random' );
That is all, now you can use the parameters described below in your XML configuration.
genrandomcfg utility may be used to create a typical configuration for
the random collector.
collector-typerandom is supported by this plugin.
rnd-baseline-typecollector-type=random. Values supported: sin (Sine
baseline curve), flat (horizontal baseline).
rnd-baseline-heightcollector-type=random. Specifies the constant baseline
height above the X axis.
rnd-amplitudecollector-type=random. Specifies the amplitude of the
random value.
rnd-baseline-period, rnd-baseline-offset,
rnd-baseline-amplitudecollector-type=random and
rnd-baseline-type=sin. These options determine the parameters of the
sine curve: Y = height + amplitude * sin( 2*pi*(TIME+offset)/period )
Copyright (c) 2003-2004 Stanislav Sinyagin <ssinyagin@yahoo.com>