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
80e7c4fc
Commit
80e7c4fc
authored
10 years ago
by
Christian Wulf
Browse files
Options
Downloads
Patches
Plain Diff
corrected javadoc
parent
c5fb0292
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/framework/AbstractStage.java
+7
-13
7 additions, 13 deletions
src/main/java/teetime/framework/AbstractStage.java
with
7 additions
and
13 deletions
src/main/java/teetime/framework/AbstractStage.java
+
7
−
13
View file @
80e7c4fc
...
@@ -33,18 +33,14 @@ public abstract class AbstractStage extends Stage {
...
@@ -33,18 +33,14 @@ public abstract class AbstractStage extends Stage {
}
}
/**
/**
* Returns an Array of InputPorts associated with the according Stage.
* @return the stage's input ports
*
* @return Array of InputPorts
*/
*/
protected
InputPort
<?>[]
getInputPorts
()
{
protected
InputPort
<?>[]
getInputPorts
()
{
return
this
.
cachedInputPorts
;
return
this
.
cachedInputPorts
;
}
}
/**
/**
* Returns an Array of OutputPorts associated with the according Stage.
* @return the stage's output ports
*
* @return Array of OutputPorts
*/
*/
protected
OutputPort
<?>[]
getOutputPorts
()
{
protected
OutputPort
<?>[]
getOutputPorts
()
{
return
this
.
cachedOutputPorts
;
return
this
.
cachedOutputPorts
;
...
@@ -55,7 +51,7 @@ public abstract class AbstractStage extends Stage {
...
@@ -55,7 +51,7 @@ public abstract class AbstractStage extends Stage {
*/
*/
@Override
@Override
public
void
onSignal
(
final
ISignal
signal
,
final
InputPort
<?>
inputPort
)
{
public
void
onSignal
(
final
ISignal
signal
,
final
InputPort
<?>
inputPort
)
{
if
(!
this
.
alreadyVisit
ed
(
signal
,
inputPort
))
{
if
(!
this
.
signalAlreadyReceiv
ed
(
signal
,
inputPort
))
{
signal
.
trigger
(
this
);
signal
.
trigger
(
this
);
for
(
OutputPort
<?>
outputPort
:
this
.
outputPortList
)
{
for
(
OutputPort
<?>
outputPort
:
this
.
outputPortList
)
{
...
@@ -65,15 +61,13 @@ public abstract class AbstractStage extends Stage {
...
@@ -65,15 +61,13 @@ public abstract class AbstractStage extends Stage {
}
}
/**
/**
* This method checks, if the signal was already sent to the Stage
*
* @param signal
* @param signal
*
A
rriving signal
*
a
rriving signal
* @param inputPort
* @param inputPort
*
InputPort
which received the signal
* which received the signal
* @return
true if
stage already
evaluated the signal, false
otherwise
* @return
<code>true</code> if this
stage
has
already
received the given <code>signal</code>, <code>false</code>
otherwise
*/
*/
protected
boolean
alreadyVisit
ed
(
final
ISignal
signal
,
final
InputPort
<?>
inputPort
)
{
protected
boolean
signalAlreadyReceiv
ed
(
final
ISignal
signal
,
final
InputPort
<?>
inputPort
)
{
if
(
this
.
triggeredSignals
.
contains
(
signal
))
{
if
(
this
.
triggeredSignals
.
contains
(
signal
))
{
this
.
logger
.
trace
(
"Got signal: "
+
signal
+
" again from input port: "
+
inputPort
);
this
.
logger
.
trace
(
"Got signal: "
+
signal
+
" again from input port: "
+
inputPort
);
return
true
;
return
true
;
...
...
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