blob: 753532fceb4f103766973f27c90a918d055c1f78 [file] [log] [blame]
Jonathan Hart062a2e82014-02-03 09:41:57 -08001package net.onrc.onos.ofcontroller.networkgraph;
2
3
4
Yuta HIGUCHI181d34d2014-02-05 15:05:46 -08005/**
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 Hart062a2e82014-02-03 09:41:57 -080012public interface Port {
Toshio Koide2f570c12014-02-06 16:55:32 -080013 public Long getNumber();
14 public Long getHardwareAddress();
Jonathan Hart891d0502014-02-10 10:04:08 -080015 public String getDescription();
Yuta HIGUCHI181d34d2014-02-05 15:05:46 -080016
Jonathan Hart062a2e82014-02-03 09:41:57 -080017 public Switch getSwitch();
Yuta HIGUCHI181d34d2014-02-05 15:05:46 -080018
Toshio Koide2f570c12014-02-06 16:55:32 -080019 public Link getOutgoingLink();
20 public Link getIncomingLink();
Yuta HIGUCHI4bfdd532014-02-07 13:47:36 -080021
22 public Iterable<Device> getDevices();
Jonathan Hart062a2e82014-02-03 09:41:57 -080023}