*/
package org.opendaylight.l2switch.loopremover.topology;
-import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Link;
-
import java.util.List;
+import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Link;
+
/**
* Service that allows to build a network graph using Topology links
* {@link org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Link}
*/
public interface NetworkGraphService {
- /**
- * Adds links to existing graph or creates new graph with given links if graph was not initialized.
- *
- * @param links
- */
- public void addLinks(List<Link> links);
-
- /**
- * removes links from existing graph.
- *
- * @param links
- */
- public void removeLinks(List<Link> links);
-
- /**
- * returns a path between 2 nodes. Implementation should ideally return shortest path.
- * @param sourceNodeId
- * @param destinationNodeId
- * @return
- */
- //public List<Link> getPath(NodeId sourceNodeId, NodeId destinationNodeId);
-
- /**
- * Forms MST(minimum spanning tree) from network graph and returns links that are not in MST.
- *
- * @return
- */
- public List<Link> getLinksInMst();
-
- /**
- * returns all the links in current network graph.
- * @return
- */
- public List<Link> getAllLinks();
-
- /**
- * Clears the prebuilt graph, in case same service instance is required to process a new graph.
- */
- public void clear();
+ /**
+ * Adds links to existing graph or creates new graph with given links if
+ * graph was not initialized.
+ *
+ * @param links
+ */
+ public void addLinks(List<Link> links);
+
+ /**
+ * removes links from existing graph.
+ *
+ * @param links
+ */
+ public void removeLinks(List<Link> links);
+
+ /**
+ * returns a path between 2 nodes. Implementation should ideally return
+ * shortest path.
+ *
+ * @param sourceNodeId
+ * @param destinationNodeId
+ * @return
+ */
+ // public List<Link> getPath(NodeId sourceNodeId, NodeId destinationNodeId);
+
+ /**
+ * Forms MST(minimum spanning tree) from network graph and returns links
+ * that are not in MST.
+ *
+ * @return
+ */
+ public List<Link> getLinksInMst();
+
+ /**
+ * returns all the links in current network graph.
+ *
+ * @return
+ */
+ public List<Link> getAllLinks();
+
+ /**
+ * Clears the prebuilt graph, in case same service instance is required to
+ * process a new graph.
+ */
+ public void clear();
}