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
da04ff1c
authored
Feb 23, 2021
by
Michael Schmid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small changes in edge generation
parent
1b8a538a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
7 deletions
+9
-7
src/main/java/mvd/jester/model/SystemManager.java
+7
-5
src/main/java/mvd/jester/tests/FonsecaNelis.java
+0
-1
src/main/java/mvd/jester/tests/SchmidMottok.java
+0
-1
src/main/java/mvd/jester/tests/UeterAgrawal.java
+2
-0
No files found.
src/main/java/mvd/jester/model/SystemManager.java
View file @
da04ff1c
...
...
@@ -365,11 +365,13 @@ public class SystemManager<T extends Builder> implements SystemManagerInterface
jobDag
.
addVertex
(
source
);
jobDag
.
addVertex
(
sink
);
for
(
Job
j
:
jobDag
)
{
if
(
jobDag
.
inDegreeOf
(
j
)
==
0
)
{
edgePairs
.
put
(
source
,
j
);
}
if
(
jobDag
.
outDegreeOf
(
j
)
==
0
)
{
edgePairs
.
put
(
j
,
sink
);
if
(
j
!=
source
&&
j
!=
sink
)
{
if
(
jobDag
.
inDegreeOf
(
j
)
==
0
)
{
edgePairs
.
put
(
source
,
j
);
}
if
(
jobDag
.
outDegreeOf
(
j
)
==
0
)
{
edgePairs
.
put
(
j
,
sink
);
}
}
}
...
...
src/main/java/mvd/jester/tests/FonsecaNelis.java
View file @
da04ff1c
...
...
@@ -27,7 +27,6 @@ import mvd.jester.model.TreeJob;
import
mvd.jester.utils.DagUtils
;
import
mvd.jester.priority.DeadlineMonotonic
;
import
mvd.jester.priority.PriorityManager
;
import
mvd.jester.priority.RateMonotonic
;
import
mvd.jester.utils.BinaryDecompositionTree
;
import
mvd.jester.utils.BinaryDecompositionTree.Node
;
import
mvd.jester.utils.BinaryDecompositionTree.NodeType
;
...
...
src/main/java/mvd/jester/tests/SchmidMottok.java
View file @
da04ff1c
...
...
@@ -13,7 +13,6 @@ import mvd.jester.model.SystemManagerInterface;
import
mvd.jester.model.Task
;
import
mvd.jester.priority.DeadlineMonotonic
;
import
mvd.jester.priority.PriorityManager
;
import
mvd.jester.priority.RateMonotonic
;
/**
* SchmidMottok
...
...
src/main/java/mvd/jester/tests/UeterAgrawal.java
View file @
da04ff1c
...
...
@@ -136,6 +136,7 @@ public class UeterAgrawal extends AbstractTest<DagTask> {
return
false
;
}
@SuppressWarnings
(
"unused"
)
private
boolean
firstFitBinPackingOfTask
(
List
<
Double
>
bins
,
Task
task
)
{
Collections
.
sort
(
bins
);
Collections
.
reverse
(
bins
);
...
...
@@ -148,6 +149,7 @@ public class UeterAgrawal extends AbstractTest<DagTask> {
return
false
;
}
@SuppressWarnings
(
"unused"
)
private
boolean
worstFitBinPackingOfTask
(
List
<
Double
>
bins
,
Task
task
)
{
Collections
.
sort
(
bins
);
if
(
bins
.
get
(
0
)
+
task
.
getDensity
()
<=
1
)
{
...
...
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