SSim C++ API documentation (v. 1.7.6)
Public Member Functions | List of all members
ssim::ProcessWithPId Class Reference

utility Process class providing a utility interface with the simulator. More...

#include <ssim.h>

Inheritance diagram for ssim::ProcessWithPId:
ssim::Process

Public Member Functions

ProcessId activate () throw ()
 activates this process within the simulator.
ProcessId pid () const throw ()
 process id of this process.
- Public Member Functions inherited from ssim::Process
virtual void init (void)
 action executed when the process is initialized.
virtual void process_event (const Event *msg)
 action executed in response to an event signaled to this process.
virtual void stop (void)
 executed when the process is explicitly stopped.

Detailed Description

utility Process class providing a utility interface with the simulator.

This is a sligtly more advanced Process class that provides automatic management of its own process id.

Member Function Documentation

ProcessId ssim::ProcessWithPId::activate ( ) throw ()

activates this process within the simulator.

Creates a simulator process with this process object. The same ProcessWithPId can be activated only once.

Returns
the ProcessId of the created simulator process. Or NULL_PROCESSID if this process object is not associated with a simulation process.
See Also
Sim::create_process(Process*)
ProcessId ssim::ProcessWithPId::pid ( ) const throw ()

process id of this process.

Returns
the id of the simulation process with this objectk, or NULL_PROCESSID if no process is associated with this object.

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