Jonathan Hart | 062a2e8 | 2014-02-03 09:41:57 -0800 | [diff] [blame] | 1 | package net.onrc.onos.ofcontroller.networkgraph; |
| 2 | |
| 3 | import java.util.Collection; |
| 4 | |
| 5 | import net.onrc.onos.ofcontroller.util.FlowEntry; |
| 6 | |
| 7 | public 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 | } |