Jonathan Hart | 062a2e8 | 2014-02-03 09:41:57 -0800 | [diff] [blame] | 1 | package net.onrc.onos.ofcontroller.networkgraph; |
| 2 | |
| 3 | |
| 4 | |
Yuta HIGUCHI | 181d34d | 2014-02-05 15:05:46 -0800 | [diff] [blame^] | 5 | /** |
| 6 | * Interface of Port Object exposed to the "NB" read-only Topology. |
| 7 | * |
| 8 | * Everything returned by these interfaces must be either Unmodifiable view, |
| 9 | * immutable object, or a copy of the original "SB" In-memory Topology. |
| 10 | * |
| 11 | */ |
Jonathan Hart | 062a2e8 | 2014-02-03 09:41:57 -0800 | [diff] [blame] | 12 | public interface Port { |
| 13 | public short getNumber(); |
| 14 | public String getName(); |
| 15 | public long getHardwareAddress(); |
Yuta HIGUCHI | 181d34d | 2014-02-05 15:05:46 -0800 | [diff] [blame^] | 16 | |
Jonathan Hart | 062a2e8 | 2014-02-03 09:41:57 -0800 | [diff] [blame] | 17 | public Switch getSwitch(); |
Yuta HIGUCHI | 181d34d | 2014-02-05 15:05:46 -0800 | [diff] [blame^] | 18 | |
Jonathan Hart | 062a2e8 | 2014-02-03 09:41:57 -0800 | [diff] [blame] | 19 | public Link getLink(); |
| 20 | } |