blob: 8715b126db8b06011374b2b2bab0b2753f1599cf [file] [log] [blame]
package net.onrc.onos.core.topology;
// TODO Everything returned by these interfaces must be either Unmodifiable view,
// immutable object, or a copy of the original "SB" In-memory Topology.
/**
* Interface of Link object in Network Graph topology.
*/
public interface Link {
/**
* Gets the source switch for the link.
*
* @return the source switch for the link.
*/
public Switch getSrcSwitch();
/**
* Gets the source port for the link.
*
* @return the source port for the link.
*/
public Port getSrcPort();
/**
* Gets the destination switch for the link.
*
* @return the destination switch for the link.
*/
public Switch getDstSwitch();
/**
* Gets the destination port for the link.
*
* @return the destination port for the link.
*/
public Port getDstPort();
/**
* Gets the last seen time for the link.
* <p/>
* TODO: Not implemented yet.
* TODO: what is the time definition?
*
* @return the last seen time for the link.
*/
public long getLastSeenTime();
/**
* Gets the link cost.
* <p/>
* TODO: What is the unit?
*
* @param return the link cost.
*/
public int getCost();
/**
* Gets the link capacity.
* <p/>
* TODO: What is the unit?
*
* @return the link capacity.
*/
public Double getCapacity();
}