blob: 882c78a0ddc8a5eabc405b99e1c9fc323c78ec49 [file] [log] [blame]
Ramon Casellas99c16252019-05-31 14:29:00 +02001/*
2 * Copyright 2018-present Open Networking Foundation
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
16 * This work was partially supported by EC H2020 project METRO-HAUL (761727).
17 */
18package org.onosproject.drivers.odtn.openroadm;
19
20import java.util.Set;
21import org.onosproject.net.ChannelSpacing;
22import org.onosproject.net.OchSignal;
23import org.onosproject.net.PortNumber;
24
25/**
26 * Lambda Query for OpenROADM ports (see Optical model).
27 *
28 * This needs to be addapted to a given use case.
29 */
30public class OpenRoadmLambdaQuery extends OpenRoadmCBandLambdaQuery {
31
32 @Override
33 public Set<OchSignal> queryLambdas(PortNumber port) {
34 channelSpacing = ChannelSpacing.CHL_50GHZ;
35 lambdaCount = 32;
36 slotGranularity = 4;
37 Set<OchSignal> set = super.queryLambdas(port);
38 return set;
39 }
40}