tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame^] | 1 | package org.onlab.onos.net; |
2 | |||||
3 | import java.net.URI; | ||||
4 | |||||
5 | /** | ||||
6 | * Immutable representaion of a device identity. | ||||
7 | */ | ||||
8 | public class DeviceId { | ||||
9 | |||||
10 | private final URI uri; | ||||
11 | |||||
12 | public DeviceId(URI uri) { | ||||
13 | this.uri = uri; | ||||
14 | } | ||||
15 | |||||
16 | /** | ||||
17 | * Returns the backing URI. | ||||
18 | * | ||||
19 | * @return backing device URI | ||||
20 | */ | ||||
21 | public URI uri() { | ||||
22 | return uri; | ||||
23 | } | ||||
24 | |||||
25 | } |