#include <cispeventlogger.h>

That log will be used as by the ISP synchromization mechanism (cIdealSimulationProtocol).
This class simply executes the simulation under the Null Message Algorithm, and additionally records all "external" events to a file.
Public Member Functions | |
| cISPEventLogger () | |
| virtual | ~cISPEventLogger () |
| virtual void | startRun () |
| virtual void | endRun () |
| void | processOutgoingMessage (cMessage *msg, int procId, int moduleId, int gateId, void *data) |
| virtual cMessage * | getNextEvent () |
| cISPEventLogger::cISPEventLogger | ( | ) |
Constructor.
| virtual cISPEventLogger::~cISPEventLogger | ( | ) | [virtual] |
Destructor.
| virtual void cISPEventLogger::startRun | ( | ) | [virtual] |
Called at the beginning of a simulation run.
The addition to the base class is opening the file.
Reimplemented from cNullMessageProtocol.
| virtual void cISPEventLogger::endRun | ( | ) | [virtual] |
Called at the end of a simulation run.
The addition to the base class is closing the file.
Reimplemented from cNullMessageProtocol.
| void cISPEventLogger::processOutgoingMessage | ( | cMessage * | msg, | |
| int | procId, | |||
| int | moduleId, | |||
| int | gateId, | |||
| void * | data | |||
| ) | [virtual] |
Overridden to check that the model doesn't set message priority which we need for our own purposes.
Reimplemented from cNullMessageProtocol.
| virtual cMessage* cISPEventLogger::getNextEvent | ( | ) | [virtual] |
Scheduler function.
The addition to the base class is recording the event to the file.
Reimplemented from cNullMessageProtocol.
1.5.5