blob: 3de47ce5914d0a4f948bd412dc277eed4a652481 [file] [log] [blame]
Jonathan Hart062a2e82014-02-03 09:41:57 -08001package net.onrc.onos.ofcontroller.networkgraph;
2
3import java.util.Collection;
4
5import net.onrc.onos.ofcontroller.util.FlowEntry;
6
7public interface Switch {
8 public long getDpid();
9
10 public Collection<Port> getPorts();
11
12 public Port getPort(short number);
13
14
15 // Flows
16 public Collection<FlowEntry> getFlowEntries();
17
18 // Graph traversal API
19 public Iterable<Switch> getNeighbors();
20
21 public Iterable<Link> getLinks();
22
23 public Link getLinkToNeighbor(long dpid);
24
25 public Collection<Device> getDevices();
26}