Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
TTool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mbe-tools
TTool
Commits
e67ec0ce
Commit
e67ec0ce
authored
7 years ago
by
apvrille
Browse files
Options
Downloads
Patches
Plain Diff
Modif on DSE window
parent
510c1e28
No related branches found
No related tags found
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.idea/misc.xml
+1
-1
1 addition, 1 deletion
.idea/misc.xml
modeling/DIPLODOCUS/SmartCardProtocol.xml
+2385
-2385
2385 additions, 2385 deletions
modeling/DIPLODOCUS/SmartCardProtocol.xml
src/main/java/ui/window/JDialogDSE.java
+46
-12
46 additions, 12 deletions
src/main/java/ui/window/JDialogDSE.java
with
2432 additions
and
2398 deletions
.idea/misc.xml
+
1
−
1
View file @
e67ec0ce
...
...
@@ -38,7 +38,7 @@
<property
name=
"caretWidth"
class=
"java.lang.Integer"
/>
</properties>
</component>
<component
name=
"ProjectRootManager"
version=
"2"
languageLevel=
"JDK_1_7"
default=
"false"
project-jdk-name=
"1.
8
"
project-jdk-type=
"JavaSDK"
>
<component
name=
"ProjectRootManager"
version=
"2"
languageLevel=
"JDK_1_7"
default=
"false"
project-jdk-name=
"1.
7
"
project-jdk-type=
"JavaSDK"
>
<output
url=
"file://$PROJECT_DIR$/build"
/>
</component>
</project>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
modeling/DIPLODOCUS/SmartCardProtocol.xml
+
2385
−
2385
View file @
e67ec0ce
This diff is collapsed.
Click to expand it.
src/main/java/ui/window/JDialogDSE.java
+
46
−
12
View file @
e67ec0ce
...
...
@@ -93,6 +93,7 @@ public class JDialogDSE extends JDialog implements ActionListener, ListSelection
protected
JCheckBox
secAnalysis
;
protected
JTextField
encTime2
,
decTime2
,
secOverhead2
;
protected
JButton
next
,
previous
;
protected
JButton
start
;
protected
JButton
stop
;
protected
JButton
close
;
...
...
@@ -149,6 +150,14 @@ public class JDialogDSE extends JDialog implements ActionListener, ListSelection
pack
();
/*TraceManager.addDev("Nb of tabs:" + jp1.getTabCount());
for(int i=0; i<jp1.getTabCount(); i++) {
TraceManager.addDev("Title at: " + i + ": " + jp1.getTitleAt(i));
}*/
if
(
jp1
.
getTabCount
()
>
5
)
{
jp1
.
setSelectedIndex
(
5
);
}
//getGlassPane().addMouseListener( new MouseAdapter() {});
getGlassPane
().
setCursor
(
Cursor
.
getPredefinedCursor
(
Cursor
.
WAIT_CURSOR
));
...
...
@@ -592,39 +601,49 @@ public class JDialogDSE extends JDialog implements ActionListener, ListSelection
outputText
.
setEditable
(
false
);
outputText
.
setMargin
(
new
Insets
(
10
,
10
,
10
,
10
));
outputText
.
setTabSize
(
3
);
outputText
.
append
(
"
Select options.
What is mandatory:"
+
"\n -
an output format\n - a
exploration way (DSE, intensive simulation)"
);
outputText
.
append
(
"What is mandatory
to start
:"
+
"\n -
Selecting at least one output format (txt, html)\n - Selecting an
exploration way (DSE, intensive simulation)"
);
JScrollPane
jsp
=
new
JScrollPane
(
outputText
,
JScrollPane
.
VERTICAL_SCROLLBAR_ALWAYS
,
JScrollPane
.
HORIZONTAL_SCROLLBAR_ALWAYS
);
jsp
.
setPreferredSize
(
new
Dimension
(
300
,
300
));
Font
f
=
new
Font
(
"Courrier"
,
Font
.
BOLD
,
12
);
outputText
.
setFont
(
f
);
jp04
.
add
(
jsp
,
c04
);
jp1
.
add
(
"Results"
,
jp04
);
//jp1.add("Results", jp04);
c
.
add
(
jp1
,
BorderLayout
.
NORTH
);
c
.
add
(
jp04
,
BorderLayout
.
CENTER
);
start
=
new
JButton
(
"Start"
,
IconManager
.
imgic53
);
stop
=
new
JButton
(
"Stop"
,
IconManager
.
imgic55
);
close
=
new
JButton
(
"Close"
,
IconManager
.
imgic27
);
next
=
new
JButton
(
"Next"
,
IconManager
.
imgic49
);
previous
=
new
JButton
(
"Prev"
,
IconManager
.
imgic47
);
start
.
setPreferredSize
(
new
Dimension
(
100
,
30
));
stop
.
setPreferredSize
(
new
Dimension
(
100
,
30
));
close
.
setPreferredSize
(
new
Dimension
(
120
,
30
));
next
.
setPreferredSize
(
new
Dimension
(
100
,
30
));
previous
.
setPreferredSize
(
new
Dimension
(
100
,
30
));
start
.
addActionListener
(
this
);
stop
.
addActionListener
(
this
);
close
.
addActionListener
(
this
);
next
.
addActionListener
(
this
);
previous
.
addActionListener
(
this
);
JPanel
jp2
=
new
JPanel
();
jp2
.
add
(
previous
);
jp2
.
add
(
start
);
jp2
.
add
(
stop
);
jp2
.
add
(
close
);
jp2
.
add
(
next
);
c
.
add
(
jp2
,
BorderLayout
.
SOUTH
);
}
public
void
storeValues
()
{
...
...
@@ -676,18 +695,33 @@ public class JDialogDSE extends JDialog implements ActionListener, ListSelection
public
void
actionPerformed
(
ActionEvent
evt
)
{
String
command
=
evt
.
getActionCommand
();
if
(
command
.
equals
(
"S
tart
"
)
)
{
if
(
evt
.
getSource
()
==
s
tart
)
{
startProcess
();
}
else
if
(
command
.
equals
(
"S
top
"
)
)
{
}
else
if
(
evt
.
getSource
()
==
s
top
)
{
stopProcess
();
}
else
if
(
command
.
equals
(
"C
lose
"
)
)
{
}
else
if
(
evt
.
getSource
()
==
c
lose
)
{
closeDialog
();
}
else
if
((
evt
.
getSource
()
==
dseButton
)
||
(
evt
.
getSource
()
==
simButton
)
||
(
evt
.
getSource
()
==
outputHTML
)
||
(
evt
.
getSource
()
==
outputTXT
)
){
}
else
if
(
evt
.
getSource
()
==
previous
)
{
previousTab
();
}
else
if
(
evt
.
getSource
()
==
next
)
{
nextTab
();
}
else
if
((
evt
.
getSource
()
==
dseButton
)
||
(
evt
.
getSource
()
==
simButton
)
||
(
evt
.
getSource
()
==
outputHTML
)
||
(
evt
.
getSource
()
==
outputTXT
)
){
handleStartButton
();
}
}
public
void
nextTab
()
{
try
{
jp1
.
setSelectedIndex
(
jp1
.
getSelectedIndex
()
+
1
);
}
catch
(
Exception
e
)
{}
}
public
void
previousTab
()
{
if
(
jp1
.
getSelectedIndex
()
>
0
)
jp1
.
setSelectedIndex
(
jp1
.
getSelectedIndex
()
-
1
);
}
public
void
closeDialog
()
{
if
(
mode
==
STARTED
)
{
stopProcess
();
...
...
@@ -743,7 +777,7 @@ public class JDialogDSE extends JDialog implements ActionListener, ListSelection
TraceManager
.
addDev
(
"Thread started"
);
// File testFile;
if
(
jp1
.
getSelectedIndex
()==
0
){
//
if (jp1.getSelectedIndex()==0){
encCC
=
encTime2
.
getText
();
decCC
=
decTime2
.
getText
();
secOv
=
secOverhead2
.
getText
();
...
...
@@ -879,7 +913,7 @@ public class JDialogDSE extends JDialog implements ActionListener, ListSelection
//System.out.println("Results summary printed");
jp1
.
setSelectedIndex
(
1
);
outputText
.
setText
(
output
+
"\n"
+
config
.
overallResults
);
}
//
}
//} catch (Exception e){
// System.out.println(e);
//}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment