X-Git-Url: https://git.pterodactylus.net/?p=sonitus.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsonitus%2Fdata%2FPipeline.java;h=ee67eec2f1fd89da67853fb1727b5bfb7ba64f7c;hp=975c21c45a365da709e80e94ae3b510055e2f4aa;hb=fa5196e029c48636f0c318311244395cfae49953;hpb=963ad1fcca51d8be2729e0dba4d6f46a69995679
diff --git a/src/main/java/net/pterodactylus/sonitus/data/Pipeline.java b/src/main/java/net/pterodactylus/sonitus/data/Pipeline.java
index 975c21c..ee67eec 100644
--- a/src/main/java/net/pterodactylus/sonitus/data/Pipeline.java
+++ b/src/main/java/net/pterodactylus/sonitus/data/Pipeline.java
@@ -46,7 +46,7 @@ import com.google.common.util.concurrent.MoreExecutors;
*
* @author David âBombeâ Roden
*/
-public class Pipeline implements Iterable {
+public class Pipeline implements Iterable {
/** The logger. */
private static final Logger logger = Logger.getLogger(Pipeline.class.getName());
@@ -102,18 +102,18 @@ public class Pipeline implements Iterable {
/**
* Returns the traffic counters of the given controlled component.
*
- * @param controlled
+ * @param controlledComponent
* The controlled component to get the traffic counters for
* @return The traffic counters for the given controlled component
*/
- public TrafficCounter trafficCounter(Controlled controlled) {
+ public TrafficCounter trafficCounter(ControlledComponent controlledComponent) {
long input = -1;
long output = -1;
for (Connection connection : connections) {
/* the connection where the source matches knows the output. */
- if (connection.source.equals(controlled)) {
+ if (connection.source.equals(controlledComponent)) {
output = connection.counter();
- } else if (connection.sinks.contains(controlled)) {
+ } else if (connection.sinks.contains(controlledComponent)) {
input = connection.counter();
}
}
@@ -171,8 +171,8 @@ public class Pipeline implements Iterable {
//
@Override
- public Iterator iterator() {
- return ImmutableSet.builder().add(source).addAll(sinks.values()).build().iterator();
+ public Iterator iterator() {
+ return ImmutableSet.builder().add(source).addAll(sinks.values()).build().iterator();
}
//