blob: 243b7a76851cbf92b90a1636197b8e035b1c91c5 [file] [log] [blame]
yjimmyyb94f93b2016-07-11 16:03:48 -07001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2016-present Open Networking Foundation
yjimmyyb94f93b2016-07-11 16:03:48 -07003 *
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 /**
Yuta HIGUCHIc57ee902017-05-01 13:12:49 -070029 * Annotation key for minimum frequency in Hz.
Jimmy Yand20e44f2016-09-09 13:32:46 -070030 * 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.
Yuta HIGUCHIc57ee902017-05-01 13:12:49 -070048 * Value is expected to be an integer in 0.01 dBm unit.
yjimmyyb94f93b2016-07-11 16:03:48 -070049 */
50 public static final String TARGET_POWER = "targetPower";
51
52 /**
Jimmy Jin10852392017-01-24 13:45:13 -080053 * Annotation key for optical port's current receiving power.
Yuta HIGUCHIc57ee902017-05-01 13:12:49 -070054 * Value is expected to be an integer in 0.01 dBm unit.
yjimmyyb94f93b2016-07-11 16:03:48 -070055 */
56 public static final String CURRENT_POWER = "currentPower";
57
58 /**
Jimmy Jin10852392017-01-24 13:45:13 -080059 * Annotation key for bidirectional optical port's transmitting power.
Yuta HIGUCHIc57ee902017-05-01 13:12:49 -070060 * Value is expected to be an integer in 0.01 dBm unit.
Jimmy Jin10852392017-01-24 13:45:13 -080061 */
62 public static final String OUTPUT_POWER = "ouputPower";
63
64 /**
yjimmyyb94f93b2016-07-11 16:03:48 -070065 * Annotation key for optical port's neighbor's DeviceId#toString().
66 */
67 public static final String NEIGHBOR_ID = "neighborDeviceId";
68
69 /**
70 * Annotation key for optical port's neighbor's PortNumber#toString().
Jimmy Yand20e44f2016-09-09 13:32:46 -070071 * Value is expected to be an integer.
yjimmyyb94f93b2016-07-11 16:03:48 -070072 */
73 public static final String NEIGHBOR_PORT = "neighborPort";
Jimmy Jin10852392017-01-24 13:45:13 -080074
75 /**
76 * Annotation key for optical port's status in receiving direction.
77 * Value is expected to be STATUS_IN_SERVICE or STATUS_OUT_SERVICE.
78 */
79 public static final String INPUT_PORT_STATUS = "inputStatus";
80
81 /**
82 * Annotation key for optical port's status in transmitting direction.
83 * Value is expected to be STATUS_IN_SERVICE or STATUS_OUT_SERVICE.
84 */
85 public static final String OUTPUT_PORT_STATUS = "ouputStatus";
86
87 /**
88 * Annotation value for optical port's in-service status.
89 */
90 public static final String STATUS_IN_SERVICE = "inService";
91
92 /**
93 * Annotation value for optical port's out-of-service status.
94 */
95 public static final String STATUS_OUT_SERVICE = "outOfService";
yjimmyyb94f93b2016-07-11 16:03:48 -070096}