blob: 4f7ec4cf2ed44c6c64834b767d8ab91cfc64a279 [file] [log] [blame]
Steven Burrows19e6e4f2016-10-05 13:27:07 -05001/*
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 */
16
17package org.onosproject.ui.impl.topo.model;
18
19import org.onosproject.net.DeviceId;
20import org.onosproject.net.HostId;
21import org.onosproject.net.region.Region;
22import org.onosproject.net.region.RegionId;
23import org.onosproject.net.region.RegionListener;
24import org.onosproject.net.region.RegionService;
25
26import java.util.Collections;
27import java.util.Set;
28
29/**
30 * Adapter for {@link RegionService}.
31 */
32public class RegionServiceAdapter implements RegionService {
33 @Override
34 public void addListener(RegionListener listener) {
35 }
36
37 @Override
38 public void removeListener(RegionListener listener) {
39 }
40
41 @Override
42 public Set<Region> getRegions() {
43 return Collections.emptySet();
44 }
45
46 @Override
47 public Region getRegion(RegionId regionId) {
48 return null;
49 }
50
51 @Override
52 public Region getRegionForDevice(DeviceId deviceId) {
53 return null;
54 }
55
56 @Override
57 public Set<DeviceId> getRegionDevices(RegionId regionId) {
58 return Collections.emptySet();
59 }
60
61 @Override
62 public Set<HostId> getRegionHosts(RegionId regionId) {
63 return Collections.emptySet();
64 }
65}