cLinkDelayLookahead Class Reference

Parallel Simulation API: cLinkDelayLookahead Class Reference
Parallel Simulation API
cLinkDelayLookahead Class Reference
Inheritance diagram for cLinkDelayLookahead:
[legend]

Public Member Functions

 cLinkDelayLookahead ()
virtual ~cLinkDelayLookahead ()
virtual void startRun () override
virtual void endRun () override
virtual simtime_t getCurrentLookahead (cMessage *msg, int procId, void *data) override
virtual simtime_t getCurrentLookahead (int procId) override
Public Member Functions inherited from cNMPLookahead
 cNMPLookahead ()
virtual ~cNMPLookahead ()
void setContext (cSimulation *simul, cParsimPartition *seg, cParsimCommunications *co)

Description

Lookahead calculation based on inter-partition link delays only.

Constructor & Destructor Documentation

◆ cLinkDelayLookahead()

cLinkDelayLookahead ( )
inline

Constructor.

◆ ~cLinkDelayLookahead()

virtual ~cLinkDelayLookahead ( )
virtual

Destructor.

Member Function Documentation

◆ startRun()

virtual void startRun ( )
overridevirtual

Sets up algorithm for new simulation run.

Implements cNMPLookahead.

◆ endRun()

virtual void endRun ( )
overridevirtual

Called at end of simulation run.

Implements cNMPLookahead.

◆ getCurrentLookahead() [1/2]

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

Updates lookahead information, based on the delay of the link where message is sent out. Returns EOT.

Implements cNMPLookahead.

◆ getCurrentLookahead() [2/2]

virtual simtime_t getCurrentLookahead ( int procId)
overridevirtual

Returns minimum of link delays toward the given partition.

Implements cNMPLookahead.