blob: 37b56fe789a42bff72a81b89edf99ae8d19ae894 [file] [log] [blame]
Toshio Koide485b4782014-10-20 19:34:21 -07001package org.onlab.onos.net.resource;
2
3/**
4 * Representation of allocated bandwidth resource.
5 */
Toshio Koided707d7a2014-10-23 12:37:51 -07006public class BandwidthResourceAllocation extends BandwidthResourceRequest
7 implements ResourceAllocation {
Toshio Koidefa0dff62014-10-23 11:46:44 -07008 /**
9 * Creates a new {@link BandwidthResourceAllocation} with {@link Bandwidth}
10 * object.
11 *
12 * @param bandwidth allocated bandwidth
13 */
14 public BandwidthResourceAllocation(Bandwidth bandwidth) {
15 super(bandwidth);
16 }
Toshio Koided1865a42014-10-23 12:44:55 -070017
18 @Override
19 public ResourceType type() {
20 return ResourceType.BANDWIDTH;
21 }
Toshio Koide485b4782014-10-20 19:34:21 -070022}