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
7a74aa70
Commit
7a74aa70
authored
10 years ago
by
Nelson Tavares de Sousa
Browse files
Options
Downloads
Patches
Plain Diff
added JavaDoc to AbstractStage
parent
259d35c1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
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
+29
-0
29 additions, 0 deletions
src/main/java/teetime/framework/AbstractStage.java
with
29 additions
and
0 deletions
src/main/java/teetime/framework/AbstractStage.java
+
29
−
0
View file @
7a74aa70
...
...
@@ -32,10 +32,20 @@ public abstract class AbstractStage extends Stage {
}
}
/**
* Returns an Array of InputPorts associated with the according Stage.
*
* @return Array of InputPorts
*/
protected
InputPort
<?>[]
getInputPorts
()
{
return
this
.
cachedInputPorts
;
}
/**
* Returns an Array of OutputPorts associated with the according Stage.
*
* @return Array of OutputPorts
*/
protected
OutputPort
<?>[]
getOutputPorts
()
{
return
this
.
cachedOutputPorts
;
}
...
...
@@ -54,6 +64,15 @@ public abstract class AbstractStage extends Stage {
}
}
/**
* This method checks, if the signal was already sent to the Stage
*
* @param signal
* Arriving signal
* @param inputPort
* InputPort which received the signal
* @return true if stage already evaluated the signal, false otherwise
*/
protected
boolean
alreadyVisited
(
final
ISignal
signal
,
final
InputPort
<?>
inputPort
)
{
if
(
this
.
triggeredSignals
.
contains
(
signal
))
{
this
.
logger
.
trace
(
"Got signal: "
+
signal
+
" again from input port: "
+
inputPort
);
...
...
@@ -80,6 +99,11 @@ public abstract class AbstractStage extends Stage {
this
.
terminate
();
}
/**
* Creates and adds an InputPort to the stage
*
* @return Newly added InputPort
*/
protected
<
T
>
InputPort
<
T
>
createInputPort
()
{
final
InputPort
<
T
>
inputPort
=
new
InputPort
<
T
>(
this
);
// inputPort.setType(portType);
...
...
@@ -87,6 +111,11 @@ public abstract class AbstractStage extends Stage {
return
inputPort
;
}
/**
* Creates and adds an OutputPort to the stage
*
* @return Newly added OutputPort
*/
protected
<
T
>
OutputPort
<
T
>
createOutputPort
()
{
final
OutputPort
<
T
>
outputPort
=
new
OutputPort
<
T
>();
// outputPort.setType(portType);
...
...
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