Class RetransmissionLossUtility
java.lang.Object
org.eclipse.mosaic.fed.cell.utility.RetransmissionLossUtility
Cellular Pr/Pl utility to determine packet retransmission and loss in regions.
(relies on the logic of the common
TransmissionModel.simulateTransmission(org.eclipse.mosaic.lib.math.RandomNumberGenerator, double, int) in MOSAIC-communication)-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TransmissionResultdetermineTransmissionAttempts(RandomNumberGenerator rng, CNetworkProperties region, TransmissionMode mode) Determine the number and success of the transmission attempts for the given message in the according region with the help of the DirectTransmission.
-
Constructor Details
-
RetransmissionLossUtility
public RetransmissionLossUtility()
-
-
Method Details
-
determineTransmissionAttempts
public static TransmissionResult determineTransmissionAttempts(RandomNumberGenerator rng, CNetworkProperties region, TransmissionMode mode) Determine the number and success of the transmission attempts for the given message in the according region with the help of the DirectTransmission.- Parameters:
region- Region where the node is locatedmode- Transmission mode (up, down, - uni,multi)- Returns:
- TransmissionResult, which includes number of attempts and success
-