blob: b53b3d27727d3affab1702462731ceb333b7d620 [file] [log] [blame]
yjimmyyb94f93b2016-07-11 16:03:48 -07001/*
2 * Copyright 2016-present Open Networking Laboratory
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 */
16package org.onosproject.net.optical;
17
18import com.google.common.annotations.Beta;
19
20/**
21 * Collection of keys for annotation for optical devices.
22 */
23@Beta
24public final class OpticalAnnotations {
25
26 private OpticalAnnotations() {}
27
28 /**
Jimmy Yand20e44f2016-09-09 13:32:46 -070029 * Annotation key for mininum frequency in Hz.
30 * Value is expected to be an integer.
31 */
32 public static final String MIN_FREQ_HZ = "minFrequency";
33
34 /**
35 * Annotation key for maximum frequency in Hz.
36 * Value is expected be an integer.
37 */
38 public static final String MAX_FREQ_HZ = "maxFrequency";
39
40 /**
41 * Annotation key for grid in Hz.
42 * Value is expected to be an integer.
43 */
44 public static final String GRID_HZ = "grid";
45
46 /**
yjimmyyb94f93b2016-07-11 16:03:48 -070047 * Annotation key for optical port's target power.
Jimmy Yand20e44f2016-09-09 13:32:46 -070048 * Value is expected to be an integer.
yjimmyyb94f93b2016-07-11 16:03:48 -070049 */
50 public static final String TARGET_POWER = "targetPower";
51
52 /**
53 * Annotation key for optical port's current power.
Jimmy Yand20e44f2016-09-09 13:32:46 -070054 * Value is expected to be an integer.
yjimmyyb94f93b2016-07-11 16:03:48 -070055 */
56 public static final String CURRENT_POWER = "currentPower";
57
58 /**
59 * Annotation key for optical port's neighbor's DeviceId#toString().
60 */
61 public static final String NEIGHBOR_ID = "neighborDeviceId";
62
63 /**
64 * Annotation key for optical port's neighbor's PortNumber#toString().
Jimmy Yand20e44f2016-09-09 13:32:46 -070065 * Value is expected to be an integer.
yjimmyyb94f93b2016-07-11 16:03:48 -070066 */
67 public static final String NEIGHBOR_PORT = "neighborPort";
68}