blob: ae955d1708f3d3d4a094d446032d2be902e9f41c [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();
Yuta HIGUCHI181d34d2014-02-05 15:05:46 -080015
Jonathan Hart062a2e82014-02-03 09:41:57 -080016 public Switch getSwitch();
Yuta HIGUCHI181d34d2014-02-05 15:05:46 -080017
Toshio Koide2f570c12014-02-06 16:55:32 -080018 public Link getOutgoingLink();
19 public Link getIncomingLink();
Yuta HIGUCHI4bfdd532014-02-07 13:47:36 -080020
21 public Iterable<Device> getDevices();
Jonathan Hart062a2e82014-02-03 09:41:57 -080022}