blob: 91f36b918e0a3d4a4bb656b12484dbaa66bdf19f [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 {
Yuta HIGUCHIea516d62014-02-13 15:59:32 -080013 public Long getDpid();
Toshio Koide2f570c12014-02-06 16:55:32 -080014 public Long getNumber();
15 public Long getHardwareAddress();
Jonathan Hart891d0502014-02-10 10:04:08 -080016 public String getDescription();
Yuta HIGUCHI181d34d2014-02-05 15:05:46 -080017
Jonathan Hart062a2e82014-02-03 09:41:57 -080018 public Switch getSwitch();
Yuta HIGUCHI181d34d2014-02-05 15:05:46 -080019
Toshio Koide2f570c12014-02-06 16:55:32 -080020 public Link getOutgoingLink();
21 public Link getIncomingLink();
Yuta HIGUCHI4bfdd532014-02-07 13:47:36 -080022
23 public Iterable<Device> getDevices();
Jonathan Hart062a2e82014-02-03 09:41:57 -080024}