blob: a070b56c5aa68db7246b740dd0c4a611eb907c09 [file] [log] [blame]
Ray Milkey7f9e0202015-11-04 17:14:09 -08001/*
2 * Copyright 2015 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.openflow;
17
Andrea Campanella80520b82016-01-05 17:55:29 -080018import java.util.List;
Ray Milkey7f9e0202015-11-04 17:14:09 -080019import java.util.Map;
20import java.util.Set;
21
22import org.onosproject.net.driver.Behaviour;
23import org.onosproject.net.driver.Driver;
24import org.onosproject.net.driver.DriverData;
25import org.onosproject.net.driver.DriverHandler;
26import org.onosproject.openflow.controller.driver.OpenFlowSwitchDriver;
27
28/**
29 * Created by ray on 11/4/15.
30 */
31public class DriverAdapter implements Driver {
32 @Override
33 public String name() {
34 return null;
35 }
36
37 @Override
38 public Driver parent() {
39 return null;
40 }
41
42 @Override
Andrea Campanella80520b82016-01-05 17:55:29 -080043 public List<Driver> parents() {
44 return null;
45 }
46
47 @Override
Ray Milkey7f9e0202015-11-04 17:14:09 -080048 public String manufacturer() {
49 return null;
50 }
51
52 @Override
53 public String hwVersion() {
54 return null;
55 }
56
57 @Override
58 public String swVersion() {
59 return null;
60 }
61
62 @Override
63 public Set<Class<? extends Behaviour>> behaviours() {
64 return null;
65 }
66
67 @Override
68 public Class<? extends Behaviour> implementation(Class<? extends Behaviour> behaviour) {
69 return null;
70 }
71
72 @Override
73 public boolean hasBehaviour(Class<? extends Behaviour> behaviourClass) {
74 return true;
75 }
76
77 @Override
78 public <T extends Behaviour> T createBehaviour(DriverData data, Class<T> behaviourClass) {
79 return null;
80 }
81
82 @SuppressWarnings("unchecked")
83 @Override
84 public <T extends Behaviour> T createBehaviour(DriverHandler handler, Class<T> behaviourClass) {
85 if (behaviourClass == OpenFlowSwitchDriver.class) {
86 return (T) new OpenflowSwitchDriverAdapter();
87 }
88 return null;
89 }
90
91 @Override
92 public Map<String, String> properties() {
93 return null;
94 }
95
96 @Override
97 public Driver merge(Driver other) {
98 return null;
99 }
100
101 @Override
102 public Set<String> keys() {
103 return null;
104 }
105
106 @Override
107 public String value(String key) {
108 return null;
109 }
110}