blob: 4fd53afc12461745129f97e7423062325402d2c4 [file] [log] [blame]
package net.onrc.onos.ofcontroller.networkgraph;
/**
* Interface of Link Object exposed to the "NB" read-only Topology.
*
* Everything returned by these interfaces must be either Unmodifiable view,
* immutable object, or a copy of the original "SB" In-memory Topology.
*
*/
public interface Link {
public Port getSourcePort();
public Port getDestinationPort();
public Switch getSourceSwitch();
public Switch getDestinationSwitch();
public long getLastSeenTime();
public int getCost();
public Double getCapacity();
// Not sure if we want to expose these northbound
// Toshi: I think these are unnecessary because we can get them
// Toshi: like "this.getSourcePort().getSwitch()" etc.
@Deprecated
public Long getSourceSwitchDpid();
@Deprecated
public Long getSourcePortNumber();
@Deprecated
public Long getDestinationSwitchDpid();
@Deprecated
public Long getDestinationPortNumber();
}