blob: cf9a2ced43c5e524e077d4b5bc9e34a5dd4f2611 [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 /**
tomb36046e2014-08-27 00:22:24 -070023 * Returns the identifier of the network element to which this port belongs.
24 *
25 * @return parent network element
26 */
27 Element parent();
28
29 // set of port attributes
30
31}