Several generators are provided by default in LeCouteauSuisse. This generators can help you to generate your events. You can choose a generator when you have this task to do :
- You have a repeated task to do : you can use the TimerGenerator or RecurrenceGenerator. Use TimerGenerator when you have simple period and give the number of second between tasks, it generate a TimerEvent event class. Use the RecurrenceGenerator when you have complexe period (like every first Monday each Month at 08:00), it generate a RecurrenceEvent event class. You can use the RecurrenceCoding tool to help you to construct and test your recurrence. Recurrence are using the format describe in RFC 2445.
- You are waiting for a file (created/deleted/modified) : you can use the FileWatcherGenerator, it generate a FileWatcherEvent event class. This generator is based on the FileSystemWatcher class of the Framework.
- You are waiting for a file of type XML, Delimited (CSV), Fixed/Structured containing several events : you can use FileToEventGenerator with a splitter. The splitter cut the file to extract events :
- You have an XML file : use the XMLFileToEventSplitter, it generate XMLEvent event class.
- You have a delimited file (like CSV : Comma Separated Value), it's a file containing an event on each line and properties of event separated by sequence of characters (like tabulation, comma, ...) : use the DelimitedFileToEventSplitter, it generate RecordEvent event class.
- You have a fixed or structured file, it's a file containing an event on one or more lines. Each line have properties based on characters position and each kind of line can be identified by sequence of first characters : use the FixedFileToEventSplitter, it generate RecordEvent event class.
- You must wait from an external event : you can use the ManualGenerator, it generate a ManualEvent event class. You can use the SetManualEvent tool to alert the generator to send an event.
- You receive message from a queue on a Message Queuing server (MSMQ) : you can use the MSMQGenerator, it generate a MSMQEvent event class. This generator is based on the MessageQueue class of the Framework.
- You want to simulate complex generated event (users surfing on a web site, connection of users on a network, traffic density ...) : you can use the PulseGenerator, it generate a PulseEvent event class. This generator can produce events based on a specific curve given by a calculator. By default three calculators are available :
ExponentialCalculator Give an exponential curve |
NormalCalculator Give a Gaussian curve |
PulseCalculator Give a train of event |
 |
 |
 |