tom | b36046e | 2014-08-27 00:22:24 -0700 | [diff] [blame^] | 1 | package org.onlab.onos.net; |
2 | |||||
3 | /** | ||||
4 | * Abstraction of a network port. | ||||
5 | */ | ||||
6 | public interface Port { | ||||
7 | |||||
8 | // Notion of port state: enabled, disabled, blocked | ||||
9 | |||||
10 | /** | ||||
11 | * Returns the port number. | ||||
12 | * | ||||
13 | * @return port number | ||||
14 | */ | ||||
15 | PortNumber number(); | ||||
16 | |||||
17 | /** | ||||
18 | * Returns the identifier of the network element to which this port belongs. | ||||
19 | * | ||||
20 | * @return parent network element | ||||
21 | */ | ||||
22 | Element parent(); | ||||
23 | |||||
24 | // set of port attributes | ||||
25 | |||||
26 | } |