FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
Loading...
Searching...
No Matches
frodo2.communication.mailer.CentralMailer.NegativeExponentialDistribution Class Reference

This class is used to generate message delay according to the negative exponential distribution. More...

Inheritance diagram for frodo2.communication.mailer.CentralMailer.NegativeExponentialDistribution:

Public Member Functions

 NegativeExponentialDistribution (double lambda)
 Constructor.
long generateDelay ()
 Generates a delay based on the negative exponential distribution.

Private Attributes

final double lambda
 Parameter of the negative exponential distribution.

Detailed Description

This class is used to generate message delay according to the negative exponential distribution.

Author
Brammert Ottens

Constructor & Destructor Documentation

◆ NegativeExponentialDistribution()

frodo2.communication.mailer.CentralMailer.NegativeExponentialDistribution.NegativeExponentialDistribution ( double lambda)

Constructor.

Parameters
lambdaThe parameter of the distribution

References lambda.

Member Function Documentation

◆ generateDelay()

long frodo2.communication.mailer.CentralMailer.NegativeExponentialDistribution.generateDelay ( )

Generates a delay based on the negative exponential distribution.

Returns
the delay (in nanoseconds)

Reimplemented from frodo2.communication.mailer.CentralMailer.DelayGenerator.

References lambda.

Member Data Documentation

◆ lambda

final double frodo2.communication.mailer.CentralMailer.NegativeExponentialDistribution.lambda
private

Parameter of the negative exponential distribution.

Referenced by generateDelay(), and NegativeExponentialDistribution().


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