Renamed *NetworkGraph* references to *Topology*.
Change-Id: Iec01c47086e1518592c0753e75395d3fe5abcde3
diff --git a/src/main/java/net/onrc/onos/core/topology/SwitchImpl.java b/src/main/java/net/onrc/onos/core/topology/SwitchImpl.java
index 1e5e1e2..5d287a8 100644
--- a/src/main/java/net/onrc/onos/core/topology/SwitchImpl.java
+++ b/src/main/java/net/onrc/onos/core/topology/SwitchImpl.java
@@ -16,14 +16,15 @@
* TODO REMOVE following design memo: This object itself may hold the DBObject,
* but this Object itself will not issue any read/write to the DataStore.
*/
-public class SwitchImpl extends NetworkGraphObject implements Switch {
+public class SwitchImpl extends TopologyObject implements Switch {
private Long dpid;
- // These needs to be ConcurrentCollecton if allowing Graph to be accessed Concurrently
+ // These needs to be ConcurrentCollecton if allowing the topology to be
+ // accessed concurrently
private final Map<Long, Port> ports;
- public SwitchImpl(NetworkGraph graph, Long dpid) {
- super(graph);
+ public SwitchImpl(Topology topology, Long dpid) {
+ super(topology);
this.dpid = dpid;
ports = new HashMap<Long, Port>();
}
@@ -91,7 +92,7 @@
}
public Port addPort(Long portNumber) {
- PortImpl port = new PortImpl(graph, this, portNumber);
+ PortImpl port = new PortImpl(topology, this, portNumber);
ports.put(port.getNumber(), port);
return port;
}