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
ddd93895
Commit
ddd93895
authored
10 years ago
by
Nelson Tavares de Sousa
Browse files
Options
Downloads
Patches
Plain Diff
added javadoc, explaning the behavior on multiple signals
parent
32bfb436
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/teetime/stage/basic/merger/Merger.java
+11
-0
11 additions, 0 deletions
src/main/java/teetime/stage/basic/merger/Merger.java
with
11 additions
and
0 deletions
src/main/java/teetime/stage/basic/merger/Merger.java
+
11
−
0
View file @
ddd93895
...
@@ -54,6 +54,17 @@ public class Merger<T> extends AbstractStage {
...
@@ -54,6 +54,17 @@ public class Merger<T> extends AbstractStage {
this
.
send
(
this
.
outputPort
,
token
);
this
.
send
(
this
.
outputPort
,
token
);
}
}
/**
* This method is executed, if a signal is sent to a instance of this class.
* Multiple signals of one certain type are ignored, if they are sent to same port.
* Hence a signal is only passed on, when it arrived on all input ports, regardless how often.
*
* @param signal
* Signal which is sent
*
* @param inputPort
* The port which the signal was sent to
*/
@Override
@Override
public
void
onSignal
(
final
ISignal
signal
,
final
InputPort
<?>
inputPort
)
{
public
void
onSignal
(
final
ISignal
signal
,
final
InputPort
<?>
inputPort
)
{
this
.
logger
.
trace
(
"Got signal: "
+
signal
+
" from input port: "
+
inputPort
);
this
.
logger
.
trace
(
"Got signal: "
+
signal
+
" from input port: "
+
inputPort
);
...
...
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