Skip to content
Snippets Groups Projects
Commit 80e7c4fc authored by Christian Wulf's avatar Christian Wulf
Browse files

corrected javadoc

parent c5fb0292
No related branches found
No related tags found
No related merge requests found
...@@ -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.alreadyVisited(signal, inputPort)) { if (!this.signalAlreadyReceived(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
* Arriving signal * arriving 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 alreadyVisited(final ISignal signal, final InputPort<?> inputPort) { protected boolean signalAlreadyReceived(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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment