adevs
|
#include <adevs_models.h>
Public Member Functions | |
Event () | |
Constructor. Sets the model to NULL. | |
Event (Devs< X, T > *model, const X &value) | |
Event (const Event< X, T > &src) | |
Copy constructor. | |
const Event< X, T > & | operator= (const Event< X, T > &src) |
Assignment operator. | |
~Event () | |
Destructor. | |
Public Attributes | |
Devs< X, T > * | model |
The model associated with the event. | |
X | value |
The value associated with the event. | |
Event objects are used for routing within a network model, for notifying event listeners of output events, and for injecting input into a running simulation.
|
inline |
Constructor sets the model and value. The input into a Simulator and in a network's routing method, the model is the target of the input value. In a callback to an event listener, the model is the source of the output value.