2 * Copyright (c) 2013 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
8 package org.opendaylight.protocol.pcep.concepts;
10 import org.opendaylight.protocol.concepts.AbstractMetric;
13 * Load of the most loaded link metric class
15 public class MostLoadedLinkLoadMetric extends AbstractMetric<MostLoadedLinkLoadMetric> {
17 private static final long serialVersionUID = 3935025327997428991L;
20 * Construct a new Load of the most loaded link metric object.
24 * @throws IllegalArgumentException
25 * ex when value is outside of allowed range (0-4294967295)
27 public MostLoadedLinkLoadMetric(final long value) {
29 if (value < 0 || value > 4294967295L)
30 throw new IllegalArgumentException("Invalid Load of the most loaded link metric value");