Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
BDD
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
ttc
BDD
Commits
a49324d3
Verified
Commit
a49324d3
authored
5 years ago
by
Rico Bergmann
Browse files
Options
Downloads
Patches
Plain Diff
Switch between output for BDD and BDT if necessary
parent
ec680662
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
solutions/RSync/src/main/scala/MainApp.scala
+7
-1
7 additions, 1 deletion
solutions/RSync/src/main/scala/MainApp.scala
solutions/RSync/src/main/scala/ttc2019/CompleteTTCProcess.scala
+2
-1
2 additions, 1 deletion
...ons/RSync/src/main/scala/ttc2019/CompleteTTCProcess.scala
with
9 additions
and
2 deletions
solutions/RSync/src/main/scala/MainApp.scala
+
7
−
1
View file @
a49324d3
...
...
@@ -15,6 +15,8 @@ object MainApp extends App {
private
val
modelPath
=
sys
.
env
.
get
(
"ModelPath"
)
private
val
benchmarkInfo
=
fetchBenchmarkInfo
()
println
()
if
(
modelPath
.
isEmpty
)
{
sys
.
error
(
"Expected model to convert in the ModelPath environment variable"
)
}
...
...
@@ -44,7 +46,11 @@ object MainApp extends App {
benchmarkingService
.
start
()
CompleteTTCProcess
.
run
()
benchmarkDuration
=
benchmarkingService
.
stop
()
reportingService
.
report
(
benchmarkInfo
,
Run
,
benchmarkDuration
,
Some
(
MetricMeasurement
.
printMetricsBDT
()))
if
(
CompleteTTCProcess
.
bdt
)
{
reportingService
.
report
(
benchmarkInfo
,
Run
,
benchmarkDuration
,
Some
(
MetricMeasurement
.
printMetricsBDT
()))
}
else
{
reportingService
.
report
(
benchmarkInfo
,
Run
,
benchmarkDuration
,
Some
(
MetricMeasurement
.
printMetricsBDD
()))
}
})
/** Retrieves information about the benchmark that should be executed.
...
...
This diff is collapsed.
Click to expand it.
solutions/RSync/src/main/scala/ttc2019/CompleteTTCProcess.scala
+
2
−
1
View file @
a49324d3
...
...
@@ -24,6 +24,7 @@ object CompleteTTCProcess extends App {
var
validator
:
Launcher
=
_
var
saver
:
TruthTable
=
_
var
processConfig
:
TTCProcessConfiguration
=
_
var
bdt
:
Boolean
=
_
/**
* Performs necessary setup instructions such as loading the ecore meta-model.
...
...
@@ -32,7 +33,7 @@ object CompleteTTCProcess extends App {
*/
def
initialize
(
processConfig
:
TTCProcessConfiguration
)
:
Unit
=
{
val
sync
=
true
val
bdt
=
false
bdt
=
false
loader
=
new
TTCLoader
validator
=
new
Launcher
if
(
sync
)
{
...
...
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