Thomas Vachuska | 58de416 | 2015-09-10 16:15:33 -0700 | [diff] [blame] | 1 | /* |
Thomas Vachuska | 52f2cd1 | 2018-11-08 21:20:04 -0800 | [diff] [blame] | 2 | * Copyright 2018-present Open Networking Foundation |
Thomas Vachuska | 58de416 | 2015-09-10 16:15:33 -0700 | [diff] [blame] | 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
Brian O'Connor | 6de2e20 | 2015-05-21 14:30:41 -0700 | [diff] [blame] | 16 | package org.onosproject.incubator.net.resource.label; |
jcc | fff0de9 | 2015-03-28 01:40:08 -0700 | [diff] [blame] | 17 | |
Brian O'Connor | 893b922 | 2015-06-25 15:07:04 -0400 | [diff] [blame] | 18 | import com.google.common.annotations.Beta; |
jcc | fff0de9 | 2015-03-28 01:40:08 -0700 | [diff] [blame] | 19 | import org.onosproject.net.Annotated; |
| 20 | import org.onosproject.net.DeviceId; |
| 21 | import org.onosproject.net.NetworkResource; |
| 22 | import org.onosproject.net.Provided; |
| 23 | |
| 24 | /** |
| 25 | * Representation of label resource. |
| 26 | */ |
Brian O'Connor | 893b922 | 2015-06-25 15:07:04 -0400 | [diff] [blame] | 27 | @Beta |
jcc | fff0de9 | 2015-03-28 01:40:08 -0700 | [diff] [blame] | 28 | public interface LabelResource extends Annotated, Provided, NetworkResource { |
| 29 | /** |
| 30 | * Returns device id. |
| 31 | * @return DeviceId |
| 32 | */ |
Sho SHIMIZU | 3310a34 | 2015-05-13 12:14:05 -0700 | [diff] [blame] | 33 | DeviceId deviceId(); |
jcc | fff0de9 | 2015-03-28 01:40:08 -0700 | [diff] [blame] | 34 | |
| 35 | /** |
Thomas Vachuska | b0ca8c5 | 2015-05-21 16:41:41 -0700 | [diff] [blame] | 36 | * Returns label resource identifier. |
| 37 | * |
| 38 | * @return resource id |
jcc | fff0de9 | 2015-03-28 01:40:08 -0700 | [diff] [blame] | 39 | */ |
Sho SHIMIZU | 3310a34 | 2015-05-13 12:14:05 -0700 | [diff] [blame] | 40 | LabelResourceId labelResourceId(); |
jcc | fff0de9 | 2015-03-28 01:40:08 -0700 | [diff] [blame] | 41 | } |