Skip to content
Snippets Groups Projects
Commit f27c4475 authored by Srinivasan Ramasubramanian's avatar Srinivasan Ramasubramanian
Browse files

Minor fixes to member names and functions for consistent naming.

parent eb22c31c
No related branches found
No related tags found
No related merge requests found
...@@ -1061,7 +1061,7 @@ public class TopologyImpl implements IOFMessageListener, IOFSwitchListener, ...@@ -1061,7 +1061,7 @@ public class TopologyImpl implements IOFMessageListener, IOFSwitchListener,
//Assign the DFS object with right values. //Assign the DFS object with right values.
currDFS.setVisited(true); currDFS.setVisited(true);
currDFS.setDfsIndex(currIndex); currDFS.setDfsIndex(currIndex);
currDFS.setParentDfsIndex(parentIndex); currDFS.setParentDFSIndex(parentIndex);
currIndex++; currIndex++;
// Traverse the graph through every outgoing link. // Traverse the graph through every outgoing link.
...@@ -1104,7 +1104,7 @@ public class TopologyImpl implements IOFMessageListener, IOFSwitchListener, ...@@ -1104,7 +1104,7 @@ public class TopologyImpl implements IOFMessageListener, IOFSwitchListener,
// If the node's lowpoint is greater than its parent's DFS index, // If the node's lowpoint is greater than its parent's DFS index,
// we need to form a new cluster with all the switches in the // we need to form a new cluster with all the switches in the
// currSet. // currSet.
if (currDFS.getLowpoint() > currDFS.getParentDfsIndex()) { if (currDFS.getLowpoint() > currDFS.getParentDFSIndex()) {
// The cluster thus far forms a strongly connected component. // The cluster thus far forms a strongly connected component.
// create a new switch cluster and the switches in the current // create a new switch cluster and the switches in the current
// set to the switch cluster. // set to the switch cluster.
......
...@@ -2,7 +2,7 @@ package net.floodlightcontroller.util; ...@@ -2,7 +2,7 @@ package net.floodlightcontroller.util;
public class ClusterDFS { public class ClusterDFS {
long dfsIndex; long dfsIndex;
long parentDfsIndex; long parentDFSIndex;
long lowpoint; long lowpoint;
boolean visited; boolean visited;
...@@ -20,13 +20,6 @@ public class ClusterDFS { ...@@ -20,13 +20,6 @@ public class ClusterDFS {
this.dfsIndex = dfsIndex; this.dfsIndex = dfsIndex;
} }
public long getParentDfsIndex() {
return parentDfsIndex;
}
public void setParentDfsIndex(long parentDfsIndex) {
this.parentDfsIndex = parentDfsIndex;
}
public long getLowpoint() { public long getLowpoint() {
return lowpoint; return lowpoint;
} }
...@@ -43,5 +36,13 @@ public class ClusterDFS { ...@@ -43,5 +36,13 @@ public class ClusterDFS {
this.visited = visited; this.visited = visited;
} }
public long getParentDFSIndex() {
return parentDFSIndex;
}
public void setParentDFSIndex(long parentDFSIndex) {
this.parentDFSIndex = parentDFSIndex;
}
} }
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