Jonathan Hart | 062a2e8 | 2014-02-03 09:41:57 -0800 | [diff] [blame^] | 1 | package net.onrc.onos.ofcontroller.networkgraph; |
| 2 | |
| 3 | public interface Link { |
| 4 | public Port getSourcePort(); |
| 5 | public Port getDestinationPort(); |
| 6 | public Switch getSourceSwitch(); |
| 7 | public Switch getDestinationSwitch(); |
| 8 | |
| 9 | public long getLastSeenTime(); |
| 10 | public int getCost(); |
| 11 | |
| 12 | // Not sure if we want to expose these northbound |
| 13 | public long getSourceSwitchDpid(); |
| 14 | public short getSourcePortNumber(); |
| 15 | public long getDestinationSwitchDpid(); |
| 16 | public short getDestinationPortNumber(); |
| 17 | } |