blob: 0f4275e246eb3ab392ca1c3a98ca1509dd62e3aa [file] [log] [blame]
package org.onlab.onos.net;
/**
* Abstraction of a network infrastructure link.
*/
public interface Link extends Provided {
/**
* Coarse representation of the link type.
*/
public enum Type {
/**
* Signifies that this is a direct single-segment link.
*/
DIRECT,
/**
* Signifies that this link is potentially comprised from multiple
* underlying segments or hops, and as such should be used to tag
* links traversing optical paths, tunnels or intervening 'dark'
* switches.
*/
INDIRECT
}
/**
* Returns the link source connection point.
*
* @return link source connection point
*/
ConnectPoint src();
/**
* Returns the link destination connection point.
*
* @return link destination connection point
*/
ConnectPoint dst();
/**
* Returns the link type.
*
* @return link type
*/
Type type();
// LinkInfo info(); // Additional link information / decorations
}