3 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
5 * This program and the accompanying materials are made available under the
6 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
7 * and is available at http://www.eclipse.org/legal/epl-v10.html
10 package org.opendaylight.controller.sal.core;
12 import javax.xml.bind.annotation.XmlRootElement;
15 * @file SupportedBandWidth.java
17 * @brief Class representing supported bandwidth
19 * Describes Supported Bandwidth which could be of a link or whatever could have
20 * bandwidth as description. It's intended in multiple of bits per
24 public class SupportedBandwidth extends Bandwidth {
25 private static final long serialVersionUID = 1L;
26 public static final String SupportedBandwidthPropName = "supportedBandwidth";
28 public SupportedBandwidth(long value) {
29 super(SupportedBandwidthPropName);
30 this.bandwidthValue = value;
34 * Private constructor used for JAXB mapping
36 private SupportedBandwidth() {
37 super(SupportedBandwidthPropName);
38 this.bandwidthValue = 0;
41 public SupportedBandwidth clone() {
42 return new SupportedBandwidth(this.bandwidthValue);
46 public String toString() {
47 StringBuffer sb = new StringBuffer();
48 sb.append("SupportedBandWidth[");
49 sb.append(super.toString());