blob: e98278b592d40820662c86ba91cad70af2fcc405 [file] [log] [blame]
tomb36046e2014-08-27 00:22:24 -07001package org.onlab.onos.net;
2
3/**
4 * Abstraction of a network port.
5 */
6public interface Port {
7
tomca20e0c2014-09-03 23:22:24 -07008 /**
tomb36046e2014-08-27 00:22:24 -07009 * Returns the port number.
10 *
11 * @return port number
12 */
13 PortNumber number();
14
15 /**
tomca20e0c2014-09-03 23:22:24 -070016 * Indicates whether or not the port is currently up and active.
17 *
18 * @return true if the port is operational
19 */
20 boolean isEnabled();
21
22 /**
tom29df6f42014-09-05 08:14:14 -070023 * Returns the parent network element to which this port belongs.
tomb36046e2014-08-27 00:22:24 -070024 *
25 * @return parent network element
26 */
tom29df6f42014-09-05 08:14:14 -070027 Element element();
tomb36046e2014-08-27 00:22:24 -070028
29 // set of port attributes
30
31}