blob: acf817035d4cb53c1dc6cd0b44586ed86fe830b5 [file] [log] [blame]
tom43387f32014-08-27 14:42:43 -07001package org.onlab.onos.net;
2
3import java.util.List;
4
5/**
6 * Representation of a contiguous directed path in a network. Path comprises
7 * of a sequence of links, where adjacent links must share the same device,
8 * meaning that destination of the source of one link must coincide with the
9 * destination of the previous link.
10 */
11public interface Path extends Link {
12
13 /**
14 * Returns sequence of links comprising the path.
15 *
16 * @return list of links
17 */
18 List<Link> links();
19
tom97937552014-09-11 10:48:42 -070020 /**
21 * Returns the path cost as a unit-less value.
22 *
23 * @return unit-less path cost
24 */
25 double cost();
26
tom43387f32014-08-27 14:42:43 -070027}