Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
las3_pub
/
jester
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d07997d2
authored
Nov 22, 2019
by
Michael Schmid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
intermediate commit before working with statistics library
parent
4f834394
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
src/main/java/mvd/jester/ResultCollector.java
+9
-9
No files found.
src/main/java/mvd/jester/ResultCollector.java
View file @
d07997d2
...
@@ -35,18 +35,18 @@ public class ResultCollector {
...
@@ -35,18 +35,18 @@ public class ResultCollector {
public
void
logAll
()
{
public
void
logAll
()
{
if
(!
testResults
.
isEmpty
())
{
if
(!
testResults
.
isEmpty
())
{
log
Results
(
testResults
,
"test"
);
log
Feasibility
(
testResults
,
"test"
);
log
MeanTardines
s
(
simulatorResults
,
"test"
);
log
TardinessStatistic
s
(
simulatorResults
,
"test"
);
logFailedTardiness
(
testResults
,
"test"
);
logFailedTardiness
(
testResults
,
"test"
);
}
}
if
(!
simulatorResults
.
isEmpty
())
{
if
(!
simulatorResults
.
isEmpty
())
{
log
Results
(
simulatorResults
,
"sim"
);
log
Feasibility
(
simulatorResults
,
"sim"
);
log
MeanTardines
s
(
simulatorResults
,
"sim"
);
log
TardinessStatistic
s
(
simulatorResults
,
"sim"
);
logFailedTardiness
(
simulatorResults
,
"sim"
);
logFailedTardiness
(
simulatorResults
,
"sim"
);
}
}
}
}
public
<
T
extends
PairInterface
>
void
log
Results
(
public
<
T
extends
PairInterface
>
void
log
Feasibility
(
Table
<
Long
,
Pair
<
T
>,
Set
<
SchedulingInfo
>>
results
,
String
type
)
{
Table
<
Long
,
Pair
<
T
>,
Set
<
SchedulingInfo
>>
results
,
String
type
)
{
LocalTime
date
=
LocalTime
.
now
();
LocalTime
date
=
LocalTime
.
now
();
Logger
log
=
new
Logger
(
"./results/results_"
+
type
+
"_"
+
numberOfProcessors
+
"_"
Logger
log
=
new
Logger
(
"./results/results_"
+
type
+
"_"
+
numberOfProcessors
+
"_"
...
@@ -117,11 +117,11 @@ public class ResultCollector {
...
@@ -117,11 +117,11 @@ public class ResultCollector {
log
.
finalize
();
log
.
finalize
();
}
}
public
<
T
extends
PairInterface
>
void
log
MeanTardines
s
(
public
<
T
extends
PairInterface
>
void
log
TardinessStatistic
s
(
Table
<
Long
,
Pair
<
T
>,
Set
<
SchedulingInfo
>>
results
,
String
type
)
{
Table
<
Long
,
Pair
<
T
>,
Set
<
SchedulingInfo
>>
results
,
String
type
)
{
LocalTime
date
=
LocalTime
.
now
();
LocalTime
date
=
LocalTime
.
now
();
Logger
log
=
new
Logger
(
"./results/
mean_tardiness_"
+
type
+
"_"
+
numberOfProcessors
+
"_"
Logger
log
=
new
Logger
(
"./results/
statistics_tardiness_"
+
type
+
"_"
+
numberOfProcessors
+
date
.
getHour
()
+
":"
+
date
.
getMinute
()
+
".txt"
);
+
"_"
+
date
.
getHour
()
+
":"
+
date
.
getMinute
()
+
".txt"
);
String
firstLine
=
new
String
(
"Utilization\tTotal"
);
String
firstLine
=
new
String
(
"Utilization\tTotal"
);
if
(!
results
.
isEmpty
())
{
if
(!
results
.
isEmpty
())
{
...
@@ -136,7 +136,7 @@ public class ResultCollector {
...
@@ -136,7 +136,7 @@ public class ResultCollector {
String
.
valueOf
((
double
)
kv
/
10
)
+
"\t"
+
totalNumberOfTasksets
.
get
(
kv
);
String
.
valueOf
((
double
)
kv
/
10
)
+
"\t"
+
totalNumberOfTasksets
.
get
(
kv
);
for
(
Pair
<
T
>
pair
:
results
.
columnKeySet
())
{
for
(
Pair
<
T
>
pair
:
results
.
columnKeySet
())
{
Set
<
SchedulingInfo
>
simulationInfos
=
results
.
get
(
kv
,
pair
);
Set
<
SchedulingInfo
>
simulationInfos
=
results
.
get
(
kv
,
pair
);
List
<
Long
>
values
=
new
ArrayList
<>();
List
<
Long
>
values
=
ArrayList
<>();
for
(
SchedulingInfo
s
:
simulationInfos
)
{
for
(
SchedulingInfo
s
:
simulationInfos
)
{
for
(
TerminationInfo
t
:
s
.
getTerminationInfos
())
{
for
(
TerminationInfo
t
:
s
.
getTerminationInfos
())
{
...
...
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