SSim C++ API documentation (v. 1.7.0)
Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Examples

ssim::SimErrorHandler Class Reference

an error handler for simulation errors. More...

#include <ssim.h>

List of all members.

Public Member Functions

virtual void clear () throw ()
 handles a clear operation.
virtual void handle_busy (ProcessId p, const Event *e) throw ()
 handles busy-process conditions.
virtual void handle_terminated (ProcessId p, const Event *e) throw ()
 handles terminated-process conditions.


Detailed Description

an error handler for simulation errors.

Simulation errors occur when an event is scheduled for a process that is either terminated or busy processing other events. These conditions may or may not represent application errors. In any case, the simulator delegates the handling of these conditions to an error handler.


Member Function Documentation

virtual void ssim::SimErrorHandler::clear  )  throw () [inline, virtual]
 

handles a clear operation.

This method is called by Sim::clear(). This enables any counters or other internal state of the error handler to be reset as necessary.

See also:
Sim::clear()

virtual void ssim::SimErrorHandler::handle_busy ProcessId  p,
const Event e
throw () [inline, virtual]
 

handles busy-process conditions.

A busy-process condition occurs when a process is scheduled to process an event at a time when it is still busy processing other events.

Parameters:
p is the id of the busy process
e is the scheduled event (possibly NULL)

virtual void ssim::SimErrorHandler::handle_terminated ProcessId  p,
const Event e
throw () [inline, virtual]
 

handles terminated-process conditions.

A terminated-process condition occurs when a process is scheduled to process an event at a time when it has already terminated its execution.

Parameters:
p is the id of the terminated process
e is the scheduled event (possibly NULL)


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