Skip to content
Snippets Groups Projects
Commit 8d3e76ea authored by Ludovic Apvrille's avatar Ludovic Apvrille
Browse files

DIPLODOCUS: Bug on loss on requests

parent 23998aa9
No related branches found
No related tags found
No related merge requests found
SRCS = generated_src/main.c generated_src/PageLoader.c generated_src/UserModel.c generated_src/DisplayDriver.c generated_src/EReaderController.c
\ No newline at end of file
SRCS = generated_src/main.c generated_src/VentricularController.c generated_src/Heart.c generated_src/ObservingSystem.c generated_src/Chronometer_Observer2.c generated_src/Chronometer_Observer1.c generated_src/PropLRI_PropHRI_Observer.c generated_src/PropVRP.c
\ No newline at end of file
......@@ -45,6 +45,8 @@ knowledge of the CeCILL license and that you accept its terms.
package tmltranslator;
import myutil.*;
public abstract class TMLCommunicationElement extends TMLElement {
......@@ -63,6 +65,9 @@ public abstract class TMLCommunicationElement extends TMLElement {
// No maxNbOfLoss -> set it to -1
public void setLossy(boolean _isLossy, int _percentage, int _maxNbOfLoss) {
if (_isLossy) {
TraceManager.addDev("***** Setting lossy " + this + " precentage = " + _percentage + " maxLoss = " + _maxNbOfLoss);
}
isLossy = _isLossy;
lossPercentage = _percentage;
maxNbOfLoss = _maxNbOfLoss;
......
......@@ -977,8 +977,8 @@ public class GTMLModeling {
request.addOriginTask(tt2);
//TraceManager.addDev("LOSS?");
if (port2.isLossy()) {
//TraceManager.addDev("LOSS***** Lossy request port");
request.setLossy(true, port1.getLossPercentage(), port1.getMaxNbOfLoss());
TraceManager.addDev("LOSS***** Lossy request port" + port2.getLossPercentage() + " maxLoss=" + port2.getMaxNbOfLoss());
request.setLossy(true, port2.getLossPercentage(), port2.getMaxNbOfLoss());
}
}
......
......@@ -122,7 +122,7 @@ public class JDialogAvatarExecutableCodeGeneration extends javax.swing.JFrame im
protected JComboBox versionCodeGenerator, units;
protected JButton showSimulationTrace;
private static int selectedUnit = 2;
private static int selectedUnit = 1;
private Thread t;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment