blob: 76e48e8b1b4b6d16fdc5baf5225802d2f671df68 [file] [log] [blame]
Brian O'Connorb7baf712015-07-28 23:27:03 -07001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2015-present Open Networking Foundation
Brian O'Connorb7baf712015-07-28 23:27:03 -07003 *
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 */
16package org.onosproject.incubator.net.domain;
17
18import com.google.common.annotations.Beta;
19import org.onosproject.core.ApplicationId;
20
21/**
22 * Abstract base class for intent primitives.
23 */
24@Beta
25public abstract class IntentPrimitive {
26
27 private final ApplicationId appId;
28
Brian O'Connorce2d8b52015-07-29 16:24:13 -070029 public IntentPrimitive(ApplicationId appId) {
Brian O'Connorb7baf712015-07-28 23:27:03 -070030 this.appId = appId;
31 }
Aaron Kruglikovc61d2d12015-09-01 11:10:48 -070032
33 /**
34 * The getter for the application ID associated with the intent primitive upon creation.
35 *
36 * @return the application ID associated with the intent primitive
37 */
38 public ApplicationId appId() {
39 return appId;
40 }
41}