fesa-core-gsi
4.3.1
|
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... | |
This class extends the AbstractEventSource to return RTEvents according to the simulation sequence specified in the Timing-Simulation configuration document.
fesaGSI::TimingSimulationEventSource::TimingSimulationEventSource | ( | const std::string & | name, |
const std::string & | timingSimulationConfigFile, | ||
fesa::EventSourceType | type, | ||
const boost::shared_ptr< fesa::Diagnostics > & | diagnostics | ||
) |
constructor
name | The unique name of the eventsource |
timingSimulationConfigFile | The configuration file, used for this event source |
type | The type of this event source |
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.
The | event 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.
eventToFire | event which will be fired when the method returns |