This generator launch events based on a specific curve given by a calculator. This generator use the PulseEvent class. The generator use a calculator class to know events to launch. The calculator is called when the generator start and return a list of delays between each events. This list is used in a loop by the generator to wait between each event to launch. By default three calculators are available :
ExponentialCalculator Give an exponential curve |
NormalCalculator Give a Gaussian curve |
PulseCalculator Give a train of event |
 |
 |
 |
See Service Configuration for detailled information to configure your service. You must declare this generator with the <generator> section inside the <generators> section. It will looks like :
<generator name="MyGeneratorName" type="LeCouteauSuisse.Components.PulseGenerator,
LeCouteauSuisseComponents, Version=1.0.0.2, Culture=neutral, PublicKeyToken=8d1037c5df6d5bd0">
This component have some parameters inside the section <settings>. Each parameter is written with a <setting> section.
Key name | Mandatory | Default value | Description |
type | Yes | | The calculator class, assembly file name, version, culture, public key token. |
data | No | | Private data you want to add to each event generated. |
Specific settings for PulseCalculator |
pulsePeriod | No | 40 | The delay in second for the pulse part of the period. |
quietPeriod | No | 20 | The delay in second for the quiet part of the period. |
numberOfPulse | No | 100 | The number of pulse in the pulse part of the period. |
Specific settings for NormalCalculator |
globalPeriod | No | 60 | The delay in second for the global period. |
numberOfInterval | No | 60 | The number of interval inside the global period. Each interval has the same length of time but has a number of event depending of the curve. |
numberOfPulse | No | 100 | The total number of pulse for the whole period. |
mean | No | 30 | The mean of the normal distribution. |
deviation | No | 6 | The deviation of the normal distribution. |
Specific settings for ExponentialCalculator |
globalPeriod | No | 60 | The delay in second for the global period. |
numberOfInterval | No | 60 | The number of interval inside the global period. Each interval has the same length of time but has a number of event depending of the curve. |
numberOfPulse | No | 100 | The total number of pulse for the whole period. |
lambda | No | 0.1 | The value of the Exponential curve. |