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.XmlAccessType;
13 import javax.xml.bind.annotation.XmlAccessorType;
14 import javax.xml.bind.annotation.XmlRootElement;
17 * @file AdvertisedBandWidth.java
19 * @brief Class representing advertised bandwidth
21 * Describes Advertised Bandwidth which could be of a link or whatever could have
22 * bandwidth as description. It's intended in multiple of bits per
26 @XmlAccessorType(XmlAccessType.NONE)
27 @SuppressWarnings("serial")
29 public class AdvertisedBandwidth extends Bandwidth {
30 public static final String AdvertisedBandwidthPropName = "advertisedBandwidth";
32 public AdvertisedBandwidth(long value) {
33 super(AdvertisedBandwidthPropName);
34 this.bandwidthValue = value;
38 * Private constructor used for JAXB mapping
40 private AdvertisedBandwidth() {
41 super(AdvertisedBandwidthPropName);
42 this.bandwidthValue = 0;
45 public AdvertisedBandwidth clone() {
46 return new AdvertisedBandwidth(this.bandwidthValue);
50 public String toString() {
51 StringBuffer sb = new StringBuffer();
52 sb.append("AdvertisedBandWidth[");
53 sb.append(super.toString());