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
GitLab 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
1caa5205
Commit
1caa5205
authored
10 years ago
by
Nelson Tavares de Sousa
Browse files
Options
Downloads
Patches
Plain Diff
#82 added JavaDoc
parent
45a4171a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/teetime/framework/pipe/IPipe.java
+44
-0
44 additions, 0 deletions
src/main/java/teetime/framework/pipe/IPipe.java
with
44 additions
and
0 deletions
src/main/java/teetime/framework/pipe/IPipe.java
+
44
−
0
View file @
1caa5205
...
...
@@ -4,25 +4,69 @@ import teetime.framework.InputPort;
import
teetime.framework.OutputPort
;
import
teetime.framework.signal.ISignal
;
/**
* Represents an interface, which should be adapted by all implementations of pipes.
*/
public
interface
IPipe
{
/**
* Adds an element to the Pipe.
*
* @param element
* Element which will be added
* @return True if the element could be added, false otherwise
*/
boolean
add
(
Object
element
);
/**
* Checks whether the pipe is empty or not.
*
* @return True if the pipe is empty, false otherwise.
*/
boolean
isEmpty
();
/**
* Retrieves the number of elements, the pipe is capable to carry at the same time.
*
* @return Number of elements
*/
int
size
();
/**
* Retrieves the last element of the pipe and deletes it.
*
* @return The last element in the pipe.
*/
Object
removeLast
();
/**
* Reads the pipe's last element, but does not delete it.
*
* @return The last element in the pipe.
*/
Object
readLast
();
/**
* Retrieves the receiving port.
*
* @return InputPort which is connected to the pipe.
*/
InputPort
<?>
getTargetPort
();
/**
* A stage can pass on a signal by executing this method. The signal will be sent to the receiving stage.
*
* @param signal
* The signal which needs to be passed on.
*/
void
sendSignal
(
ISignal
signal
);
@Deprecated
<
T
>
void
connectPorts
(
OutputPort
<?
extends
T
>
sourcePort
,
InputPort
<
T
>
targetPort
);
/**
* Stages report new elements with this method.
*/
void
reportNewElement
();
}
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