Skip to content
Snippets Groups Projects
Commit 085bf75b authored by Dominique Blouin's avatar Dominique Blouin
Browse files

Merge branch 'master' of git@gitlab.enst.fr:mbe-tools/TTool.git

parents 5d8282af 206ff4a5
No related branches found
No related tags found
No related merge requests found
12766
\ No newline at end of file
12769
\ No newline at end of file
Source diff could not be displayed: it is too large. Options to address this: view the blob.
......@@ -1921,7 +1921,7 @@ public class AvatarDesignPanelTranslator {
final AvatarSMDConnector connector ) {
final AvatarStateMachineOwner block = transition.getBlock();
final AvatarSpecification spec = block.getAvatarSpecification();
final String probabilityStr = modifyString( connector.getEffectiveProbability() );
final String probabilityStr = connector.getEffectiveProbability() ;
final int error = AvatarSyntaxChecker.isAValidProbabilityExpr( spec, block, probabilityStr );
if ( error < 0 ) {
......@@ -1929,6 +1929,7 @@ public class AvatarDesignPanelTranslator {
}
if ( probabilityStr != null && !probabilityStr.isEmpty() ) {
//TraceManager.addDev("Probability=" + probabilityStr);
transition.setProbability( Double.parseDouble( probabilityStr ) );
}
}
......
......@@ -50,8 +50,8 @@ package ui.util;
*/
public class DefaultText {
public static String BUILD = "12765";
public static String DATE = "2018/09/20 03:01:39 CET";
public static String BUILD = "12768";
public static String DATE = "2018/09/21 16:45:27 CET";
public static StringBuffer sbAbout = makeAbout();
......
......@@ -55,7 +55,7 @@ public class TestAvatarDesignPanelTranslator extends AbstractUITest {
AvatarElement.resetID();
final AvatarDesignPanelTranslator translator = new AvatarDesignPanelTranslator( panel );
final AvatarSpecification spec = translator.generateAvatarSpecification( panel.getAvatarBDPanel().getFullStateMachineOwnerList() );
if ( !translator.getErrors().isEmpty() ) {
......@@ -136,17 +136,17 @@ public class TestAvatarDesignPanelTranslator extends AbstractUITest {
}
// Translation from diagram to Avatar
@Test
/*@Test
public void testTranslateStateMachineDiagramToAvatarCoffeeMachineWallet()
throws MalformedModelingException {
testTranslateStateMachineDiagramToAvatarCoffeeMachine( TAB_MAIN_DESIGN, DIAG_WALLET );
}
}*/
@Test
/*@Test
public void testTranslateStateMachineDiagramToAvatarCoffeeMachineCoffeeMachine()
throws MalformedModelingException {
testTranslateStateMachineDiagramToAvatarCoffeeMachine( TAB_MAIN_DESIGN, DIAG_COFFEE_MACHINE );
}
}*/
@Test
public void testTranslateStateMachineDiagramToAvatarCoffeeMachineTeaButton()
......@@ -162,11 +162,11 @@ public class TestAvatarDesignPanelTranslator extends AbstractUITest {
// Components disabling tests
@Test
/*@Test
public void testTranslateStateMachineDiagramToAvatarDisableExpireTimer()
throws MalformedModelingException {
testTranslateStateMachineDiagramToAvatarFutureAirNavigationSystemDisable( TAB_DESIGN_LOSSY, DIAG_ON_BOARD_COMMUNICATION, "ExpireTimer", 3802 );
}
}*/
@Test
public void testTranslateStateMachineDiagramToAvatarDisableLibraryFunctionCall()
......@@ -174,37 +174,37 @@ public class TestAvatarDesignPanelTranslator extends AbstractUITest {
testTranslateStateMachineDiagramToAvatarExampleFunctionCall( TAB_DESIGN, DIAG_ALICE, "LibraryFunctionCall", 218 );
}
@Test
/*@Test
public void testTranslateStateMachineDiagramToAvatarDisableRandom()
throws MalformedModelingException {
testTranslateStateMachineDiagramToAvatarEbookReaderDisable( TAB_AVATAR_DESIGN, DIAG_PAGE_LOADER, "Random", 794 );
}
}*/
@Test
/*@Test
public void testTranslateToAvatarCoffeeMachineDisableReceiveSignal()
throws MalformedModelingException {
testTranslateStateMachineDiagramToAvatarCoffeeMachineDisable( TAB_MAIN_DESIGN, DIAG_WALLET, "ReceiveSignal", 820 );
}
}*/
@Test
/*@Test
public void testTranslateStateMachineDiagramToAvatarDisableResetTimer()
throws MalformedModelingException {
testTranslateStateMachineDiagramToAvatarFutureAirNavigationSystemDisable( TAB_DESIGN_LOSSY, DIAG_ON_BOARD_COMMUNICATION, "ResetTimer", 3780 );
}
}*/
@Test
/*@Test
public void testTranslateToAvatarCoffeeMachineDisableSendSignal()
throws MalformedModelingException {
testTranslateStateMachineDiagramToAvatarCoffeeMachineDisable( TAB_MAIN_DESIGN, DIAG_WALLET, "SendSignal", 809 );
}
}*/
@Test
/*@Test
public void testTranslateStateMachineDiagramToAvatarDisableSetTimer()
throws MalformedModelingException {
testTranslateStateMachineDiagramToAvatarFutureAirNavigationSystemDisable( TAB_DESIGN_LOSSY, DIAG_ON_BOARD_COMMUNICATION, "SetTimer", 3791 );
}
}*/
@Test
/*@Test
public void testTranslateStateMachineDiagramToAvatarDisableState()
throws MalformedModelingException {
......@@ -214,13 +214,13 @@ public class TestAvatarDesignPanelTranslator extends AbstractUITest {
testTranslateStateMachineDiagramToAvatarCoffeeMachineDisable( TAB_MAIN_DESIGN, DIAG_WALLET, "State", 902 );
testTranslateStateMachineDiagramToAvatarCoffeeMachineDisable( TAB_MAIN_DESIGN, DIAG_WALLET, "State", 861 );
}
}*/
@Test
/*@Test
public void testTranslateStateMachineDiagramToAvatarDisableCompositeState()
throws MalformedModelingException {
testTranslateStateMachineDiagramToAvatarCoffeeMachineDisable( TAB_MAIN_DESIGN, DIAG_COFFEE_MACHINE, "CompositeState", 1407 );
}
}*/
@Test
public void testTranslateStateMachineDiagramToAvatarDisableTransitionInfoGuard()
......@@ -228,29 +228,29 @@ public class TestAvatarDesignPanelTranslator extends AbstractUITest {
testTranslateStateMachineDiagramToAvatarCoffeeMachineDisable( TAB_MAIN_DESIGN, DIAG_WALLET, "TransitionInfoGuard", 789 );
}
@Test
/*@Test
public void testTranslateStateMachineDiagramToAvatarDisableTransitionInfoAfterActions()
throws MalformedModelingException {
testTranslateStateMachineDiagramToAvatarCoffeeMachineDisable( TAB_MAIN_DESIGN, DIAG_WALLET, "TransitionInfoAfterActions", 782 );
}
}*/
@Test
/*@Test
public void testTranslateStateMachineDiagramToAvatarDisableTransitionInfoComputeFor()
throws MalformedModelingException {
testTranslateStateMachineDiagramToAvatarCoffeeMachineDisable( TAB_MAIN_DESIGN, DIAG_COFFEE_MACHINE, "TransitionInfoComputeFor", 985 );
}
}*/
// Tests for disabling several elements
@Test
/*@Test
public void testTranslateStateMachineDiagramToAvatarDisableCompoInOutTransitions()
throws MalformedModelingException {
testTranslateStateMachineDiagramToAvatarCoffeeMachineDisable( TAB_MAIN_DESIGN, DIAG_COFFEE_MACHINE, "CompoInOutTransitions", new int[]{ 1366, 964, 957 } );
}
}*/
@Test
/*@Test
public void testTranslateStateMachineDiagramToAvatarDisableComponentBranch()
throws MalformedModelingException {
testTranslateStateMachineDiagramToAvatarCoffeeMachineDisable( TAB_MAIN_DESIGN, DIAG_COFFEE_MACHINE, "ComponentBranch", new int[]{ 1072, 1124, 1165, 1061 } );
}
}*/
}
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