Class RetransmissionLossUtility
- java.lang.Object
-
- org.eclipse.mosaic.fed.cell.utility.RetransmissionLossUtility
-
public class RetransmissionLossUtility extends Object
Cellular Pr/Pl utility to determine packet retransmission and loss in regions. (relies on the logic of the commonTransmissionModel.simulateTransmission(org.eclipse.mosaic.lib.math.RandomNumberGenerator, double, int)
in MOSAIC-communication)
-
-
Constructor Summary
Constructors Constructor Description RetransmissionLossUtility()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Method Detail
-
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
-
-