Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TeeTime-Framework
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nelson Tavares de Sousa
TeeTime-Framework
Commits
dd4038d3
Commit
dd4038d3
authored
10 years ago
by
Nelson Tavares de Sousa
Browse files
Options
Downloads
Patches
Plain Diff
changed type for higher type safety
parent
01e6dbd3
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
src/main/java/teetime/stage/basic/merger/Merger.java
+3
-3
3 additions, 3 deletions
src/main/java/teetime/stage/basic/merger/Merger.java
src/test/java/teetime/stage/WordCountingTest.java
+1
-1
1 addition, 1 deletion
src/test/java/teetime/stage/WordCountingTest.java
with
4 additions
and
4 deletions
src/main/java/teetime/stage/basic/merger/Merger.java
+
3
−
3
View file @
dd4038d3
...
@@ -30,7 +30,7 @@ import teetime.framework.signal.ISignal;
...
@@ -30,7 +30,7 @@ import teetime.framework.signal.ISignal;
* This stage merges data from the input ports, by taking elements according to the chosen merge strategy and by putting them to the output port.
* This stage merges data from the input ports, by taking elements according to the chosen merge strategy and by putting them to the output port.
* For its signal handling behavior see {@link #onSignal(ISignal, InputPort)}
* For its signal handling behavior see {@link #onSignal(ISignal, InputPort)}
*
*
* @author Christian Wulf
* @author Christian Wulf
, Nelson Tavares de Sousa
*
*
* @since 1.0
* @since 1.0
*
*
...
@@ -43,7 +43,7 @@ public final class Merger<T> extends AbstractStage {
...
@@ -43,7 +43,7 @@ public final class Merger<T> extends AbstractStage {
private
IMergerStrategy
strategy
;
private
IMergerStrategy
strategy
;
private
final
Map
<
Class
<
?
>,
Set
<
InputPort
<?>>>
signalMap
=
new
HashMap
<
Class
<
?
>,
Set
<
InputPort
<?>>>();
private
final
Map
<
Class
<
ISignal
>,
Set
<
InputPort
<?>>>
signalMap
=
new
HashMap
<
Class
<
ISignal
>,
Set
<
InputPort
<?>>>();
public
Merger
()
{
public
Merger
()
{
this
(
new
RoundRobinStrategy
());
this
(
new
RoundRobinStrategy
());
...
@@ -92,7 +92,7 @@ public final class Merger<T> extends AbstractStage {
...
@@ -92,7 +92,7 @@ public final class Merger<T> extends AbstractStage {
}
else
{
}
else
{
Set
<
InputPort
<?>>
tempSet
=
new
HashSet
<
InputPort
<?>>();
Set
<
InputPort
<?>>
tempSet
=
new
HashSet
<
InputPort
<?>>();
tempSet
.
add
(
inputPort
);
tempSet
.
add
(
inputPort
);
signalMap
.
put
(
signal
.
getClass
(),
tempSet
);
signalMap
.
put
(
(
Class
<
ISignal
>)
signal
.
getClass
(),
tempSet
);
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
src/test/java/teetime/stage/WordCountingTest.java
+
1
−
1
View file @
dd4038d3
...
@@ -38,7 +38,7 @@ public class WordCountingTest {
...
@@ -38,7 +38,7 @@ public class WordCountingTest {
@Test
@Test
public
void
test1
()
throws
IOException
{
public
void
test1
()
throws
IOException
{
int
threads
=
6
;
int
threads
=
2
;
WordCountingConfiguration
wcc
=
new
WordCountingConfiguration
(
threads
,
testFile
,
testFile
);
WordCountingConfiguration
wcc
=
new
WordCountingConfiguration
(
threads
,
testFile
,
testFile
);
Analysis
analysis
=
new
Analysis
(
wcc
);
Analysis
analysis
=
new
Analysis
(
wcc
);
analysis
.
start
();
analysis
.
start
();
...
...
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