X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fsal%2Fapi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fcore%2FPath.java;h=5f2dc92aee8c06dd8e204a10af04910cf426bafb;hp=5584cd9461abc54d3e79a5c57737f576c0b9e816;hb=2699e9c1550b01d72fea94cc24bb89837edc0d76;hpb=42210c03b0a4c54706320ba9f55794c0abd4d201 diff --git a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/Path.java b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/Path.java index 5584cd9461..5f2dc92aee 100644 --- a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/Path.java +++ b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/Path.java @@ -11,7 +11,7 @@ * @file Path.java * * @brief Describe a path as a sequence of Edge such that from - * each of its Tail Node there is an link to the next Head Node in the sequence + * each of its Head Node there is an link to the next Tail Node in the sequence * */ package org.opendaylight.controller.sal.core; @@ -29,7 +29,7 @@ import javax.xml.bind.annotation.XmlElement; /** * Describe a path as a sequence of Edge such that from - * each of its Tail Node there is an link to the next Head Node in the + * each of its Head Node there is an link to the next Tail Node in the * sequence * */ @@ -50,15 +50,15 @@ public class Path implements Serializable { /** * Construct an object representing a path, the constructor will * check if the passed list of edges is such that for every - * consecutive edges the tailnode of the first edge coincide with - * the head node of the subsequent in order for connectivity to be there. + * consecutive edges the head node of the first edge coincide with + * the tail node of the subsequent in order for connectivity to be there. * * @param edges Edges of the path * */ public Path(List edges) throws ConstructionException { - // Lets check if the list of edges is such that the tail node - // of an edge is also the head node of the subsequent one + // Lets check if the list of edges is such that the head node + // of an edge is also the tail node of the subsequent one boolean sequential = true; if (edges.size() >= 2) { for (int i = 0; i < edges.size() - 1; i++) {