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