blob: 216d4b8eb2c0b0a59b32655d777e994ff194de26 [file] [log] [blame]
Jonathan Hart472062d2014-04-03 10:56:48 -07001package net.onrc.onos.core.topology;
Jonathan Hart062a2e82014-02-03 09:41:57 -08002
3
Yuta HIGUCHI181d34d2014-02-05 15:05:46 -08004/**
5 * Interface of Port Object exposed to the "NB" read-only Topology.
Ray Milkey269ffb92014-04-03 14:43:30 -07006 * <p/>
Yuta HIGUCHI181d34d2014-02-05 15:05:46 -08007 * Everything returned by these interfaces must be either Unmodifiable view,
8 * immutable object, or a copy of the original "SB" In-memory Topology.
Yuta HIGUCHI181d34d2014-02-05 15:05:46 -08009 */
Jonathan Hart062a2e82014-02-03 09:41:57 -080010public interface Port {
Ray Milkey269ffb92014-04-03 14:43:30 -070011 public Long getDpid();
Yuta HIGUCHI181d34d2014-02-05 15:05:46 -080012
Ray Milkey269ffb92014-04-03 14:43:30 -070013 public Long getNumber();
Yuta HIGUCHI181d34d2014-02-05 15:05:46 -080014
Ray Milkey269ffb92014-04-03 14:43:30 -070015 public Long getHardwareAddress();
Yuta HIGUCHI4bfdd532014-02-07 13:47:36 -080016
Ray Milkey269ffb92014-04-03 14:43:30 -070017 public String getDescription();
18
19 public Switch getSwitch();
20
21 public Link getOutgoingLink();
22
23 public Link getIncomingLink();
24
25 public Iterable<Device> getDevices();
Jonathan Hart062a2e82014-02-03 09:41:57 -080026}