blob: 02181bc66a7b6b73df654fbe67a5d0a6e799f58a [file] [log] [blame]
Simon Hunt41b943e2015-05-21 13:52:01 -07001/*
2 * Copyright 2015 Open Networking Laboratory
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16 */
17
18package org.onosproject.cord.gui.model;
19
20/**
21 * Encapsulates a bundle, including current state.
22 */
23public class Bundle {
24 private final BundleDescriptor bundleDescriptor;
25
26 /**
27 * Constructs a new bundle instance.
28 *
29 * @param bundleDescriptor the descriptor
30 */
31 public Bundle(BundleDescriptor bundleDescriptor) {
32 this.bundleDescriptor = bundleDescriptor;
33 }
34
35 /**
36 * Returns the bundle descriptor.
37 *
38 * @return the descriptor
39 */
40 public BundleDescriptor descriptor() {
41 return bundleDescriptor;
42 }
43
44}