2 * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.openflowplugin.impl.device;
11 import org.opendaylight.openflowplugin.api.openflow.device.DeviceState;
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeId;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.FeaturesReply;
17 * org.opendaylight.openflowplugin.impl.device
19 * DeviceState is builded from {@link FeaturesReply} and {@link NodeId}. Both values are inside
20 * {@link org.opendaylight.openflowplugin.api.openflow.connection.ConnectionContext}
23 class DeviceStateImpl implements DeviceState {
25 private boolean meterIsAvailable;
26 private boolean groupIsAvailable;
27 private boolean flowStatisticsAvailable;
28 private boolean tableStatisticsAvailable;
29 private boolean portStatisticsAvailable;
30 private boolean queueStatisticsAvailable;
32 public DeviceStateImpl() {
36 public boolean isMetersAvailable() {
37 return meterIsAvailable;
41 public void setMeterAvailable(final boolean available) {
42 meterIsAvailable = available;
46 public boolean isGroupAvailable() {
47 return groupIsAvailable;
51 public void setGroupAvailable(final boolean available) {
52 groupIsAvailable = available;
56 public boolean isFlowStatisticsAvailable() {
57 return flowStatisticsAvailable;
61 public void setFlowStatisticsAvailable(final boolean available) {
62 flowStatisticsAvailable = available;
66 public boolean isTableStatisticsAvailable() {
67 return tableStatisticsAvailable;
71 public void setTableStatisticsAvailable(final boolean available) {
72 tableStatisticsAvailable = available;
76 public boolean isPortStatisticsAvailable() {
77 return portStatisticsAvailable;
81 public void setPortStatisticsAvailable(final boolean available) {
82 portStatisticsAvailable = available;
86 public boolean isQueueStatisticsAvailable() {
87 return queueStatisticsAvailable;
91 public void setQueueStatisticsAvailable(final boolean available) {
92 queueStatisticsAvailable = available;