fesa-core-gsi  4.2.0
fesaGSI::TimingSimulationEventSource Class Reference

This class extends the AbstractEventSource to return RTEvents according to the simulation sequence specified in the Timing-Simulation configuration document. More...

#include <TimingSimulationEventSource.h>

Inherits AbstractEventSource.

Public Member Functions

 TimingSimulationEventSource (const std::string &name, const std::string &timingSimulationConfigFile, fesa::EventSourceType type, const boost::shared_ptr< fesa::Diagnostics > &diagnostics)
 constructor More...
 
 ~TimingSimulationEventSource ()
 destructor
 
void wait (boost::shared_ptr< fesa::RTEvent > &eventToFire)
 This method gets stuck, until a internal timer generates and returns the next RTEvent from the linked list of EventElements. More...
 
void connect (const boost::shared_ptr< fesa::EventElement > &eventElement)
 In this method we check, if the event, to which a FESA-class wants to connect exists in our configuration. If yes, we link the classname to the event. Later the event will be fired once per connected class. More...
 

Detailed Description

This class extends the AbstractEventSource to return RTEvents according to the simulation sequence specified in the Timing-Simulation configuration document.

Constructor & Destructor Documentation

fesaGSI::TimingSimulationEventSource::TimingSimulationEventSource ( const std::string &  name,
const std::string &  timingSimulationConfigFile,
fesa::EventSourceType  type,
const boost::shared_ptr< fesa::Diagnostics > &  diagnostics 
)

constructor

Parameters
nameThe unique name of the eventsource
timingSimulationConfigFileThe configuration file, used for this event source
typeThe type of this event source

Member Function Documentation

void fesaGSI::TimingSimulationEventSource::connect ( const boost::shared_ptr< fesa::EventElement > &  eventElement)

In this method we check, if the event, to which a FESA-class wants to connect exists in our configuration. If yes, we link the classname to the event. Later the event will be fired once per connected class.

Parameters
Theevent element, to which FESA wants to connect
void fesaGSI::TimingSimulationEventSource::wait ( boost::shared_ptr< fesa::RTEvent > &  eventToFire)

This method gets stuck, until a internal timer generates and returns the next RTEvent from the linked list of EventElements.

Parameters
eventToFireevent which will be fired when the method returns

The documentation for this class was generated from the following files: