Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qpme-core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Descartes Research
qpme-core
Commits
b8de091f
Commit
b8de091f
authored
Dec 03, 2018
by
Simon Eismann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
popup with simulation time
parent
d209be97
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
1 deletion
+22
-1
sources/qpme.simqpn.kernel/META-INF/MANIFEST.MF
sources/qpme.simqpn.kernel/META-INF/MANIFEST.MF
+2
-1
sources/qpme.simqpn.kernel/src/de/tud/cs/simqpn/kernel/console/SimQPN.java
...pn.kernel/src/de/tud/cs/simqpn/kernel/console/SimQPN.java
+20
-0
No files found.
sources/qpme.simqpn.kernel/META-INF/MANIFEST.MF
View file @
b8de091f
...
...
@@ -32,7 +32,8 @@ Require-Bundle: org.dom4j,
org.eclipse.core.runtime;bundle-version="3.7.0",
cern.colt;bundle-version="1.2.0",
edu.bonn.cs.net.jbarrier;bundle-version="1.0.0",
org.eclipse.equinox.concurrent;bundle-version="1.1.0"
org.eclipse.equinox.concurrent;bundle-version="1.1.0",
org.eclipse.swt
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Import-Package: org.apache.commons.math.distribution
Automatic-Module-Name: qpme.simqpn.kernel
sources/qpme.simqpn.kernel/src/de/tud/cs/simqpn/kernel/console/SimQPN.java
View file @
b8de091f
...
...
@@ -65,6 +65,11 @@ import org.dom4j.io.SAXReader;
import
org.eclipse.core.runtime.Platform
;
import
org.eclipse.equinox.app.IApplication
;
import
org.eclipse.equinox.app.IApplicationContext
;
import
org.eclipse.swt.SWT
;
import
org.eclipse.swt.layout.GridLayout
;
import
org.eclipse.swt.widgets.Display
;
import
org.eclipse.swt.widgets.Shell
;
import
org.eclipse.swt.widgets.Text
;
import
de.tud.cs.simqpn.kernel.SimQPNController
;
import
de.tud.cs.simqpn.kernel.SimQPNException
;
...
...
@@ -97,7 +102,22 @@ public class SimQPN implements IApplication {
String
configurationName
,
String
outputFilename
,
String
logConfigFilename
,
SimulatorProgress
progress
,
Date
date
)
throws
SimQPNException
{
Element
net
=
netDocument
.
getRootElement
();
SimQPNController
sim
=
SimQPNController
.
createSimQPNController
(
net
,
configurationName
,
logConfigFilename
,
date
);
long
tic
=
System
.
currentTimeMillis
();
sim
.
execute
(
configurationName
,
outputFilename
,
progress
);
long
toc
=
System
.
currentTimeMillis
();
Display
display
=
new
Display
();
Shell
shell
=
new
Shell
(
display
);
shell
.
setText
(
"Shell"
);
shell
.
setLayout
(
new
GridLayout
(
1
,
true
));
Text
text
=
new
Text
(
shell
,
SWT
.
SINGLE
|
SWT
.
BORDER
);
text
.
setText
(
""
+
(
toc
-
tic
));
shell
.
pack
();
shell
.
open
();
while
(!
shell
.
isDisposed
())
{
if
(!
display
.
readAndDispatch
())
display
.
sleep
();
}
display
.
dispose
();
System
.
out
.
println
(
"Simulation time: "
+
(
toc
-
tic
));
net
=
sim
.
getXMLDescription
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment