OMNeT++ Parallel Simulation Support  6.0.3
cNMPLookahead Class Referenceabstract

#include <cnmplookahead.h>

Description

Base class of lookahead calculations for cNullMessageProtocol which implements the "null message algorithm".

Inheritance diagram for cNMPLookahead:
cObject cAdvancedLinkDelayLookahead cLinkDelayLookahead

Public Member Functions

 cNMPLookahead ()
 
virtual ~cNMPLookahead ()
 
void setContext (cSimulation *simul, cParsimPartition *seg, cParsimCommunications *co)
 
virtual void startRun ()=0
 
virtual void endRun ()=0
 
virtual simtime_t getCurrentLookahead (cMessage *msg, int procId, void *data)=0
 
virtual simtime_t getCurrentLookahead (int procId)=0
 

Constructor & Destructor Documentation

◆ cNMPLookahead()

cNMPLookahead ( )
inline

Constructor.

◆ ~cNMPLookahead()

virtual ~cNMPLookahead ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ setContext()

void setContext ( cSimulation simul,
cParsimPartition seg,
cParsimCommunications co 
)
inline

Pass objects it has to cooperate with.

◆ startRun()

virtual void startRun ( )
pure virtual

Hook called at start of simulation run.

Implemented in cLinkDelayLookahead, and cAdvancedLinkDelayLookahead.

◆ endRun()

virtual void endRun ( )
pure virtual

Hook called at end of simulation run.

Implemented in cLinkDelayLookahead, and cAdvancedLinkDelayLookahead.

◆ getCurrentLookahead() [1/2]

virtual simtime_t getCurrentLookahead ( cMessage msg,
int  procId,
void *  data 
)
pure virtual

Performs lookahead calculation when a message gets sent out from the partition.

Implemented in cLinkDelayLookahead, and cAdvancedLinkDelayLookahead.

◆ getCurrentLookahead() [2/2]

virtual simtime_t getCurrentLookahead ( int  procId)
pure virtual

Returns current lookahead.

Implemented in cLinkDelayLookahead, and cAdvancedLinkDelayLookahead.


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