SSim C++ API documentation (v. 1.5.0)

Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | Examples

ssim::Event Class Reference

basic event in the simulation. More...

#include <ssim.h>

Inheritance diagram for ssim::Event:

ssim::TProcess::Timeout List of all members.

Detailed Description

basic event in the simulation.

This base class represents a piece of information or a signal exchanged between two processes through the simulator. Every simulated event must inherit from this class. For example:

class TextMessage : public Event { public: char * message; TextMessage(const char * m) { message = strdup(m); } ~TextMessage() { free(message); } };

See also:
Sim::signal_event(), Sim::self_signal_event(), Process::process_event(const Event*), TProcess::wait_for_event(Time).


The documentation for this class was generated from the following file:
Copyright © 2002-2004 University of Colorado.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License". This documentation is authored and maintained by Antonio Carzaniga