blob: 0fc72f64efbbd0269eea8be6b87e5632b295895c [file] [log] [blame]
Jonathan Hart062a2e82014-02-03 09:41:57 -08001package net.onrc.onos.ofcontroller.networkgraph;
2
Yuta HIGUCHI181d34d2014-02-05 15:05:46 -08003/**
4 * Interface of Link Object exposed to the "NB" read-only Topology.
5 *
6 * Everything returned by these interfaces must be either Unmodifiable view,
7 * immutable object, or a copy of the original "SB" In-memory Topology.
8 *
9 */
Jonathan Hart062a2e82014-02-03 09:41:57 -080010public interface Link {
11 public Port getSourcePort();
12 public Port getDestinationPort();
13 public Switch getSourceSwitch();
14 public Switch getDestinationSwitch();
Yuta HIGUCHI181d34d2014-02-05 15:05:46 -080015
Jonathan Hart062a2e82014-02-03 09:41:57 -080016 public long getLastSeenTime();
17 public int getCost();
Yuta HIGUCHI181d34d2014-02-05 15:05:46 -080018
Jonathan Hart062a2e82014-02-03 09:41:57 -080019 // Not sure if we want to expose these northbound
20 public long getSourceSwitchDpid();
21 public short getSourcePortNumber();
22 public long getDestinationSwitchDpid();
23 public short getDestinationPortNumber();
24}