blob: a49bf958a79539384d5931e7e45bcc2a52495b0a [file] [log] [blame]
Brian O'Connorb7baf712015-07-28 23:27:03 -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 */
16package org.onosproject.incubator.net.domain;
17
18import com.google.common.annotations.Beta;
19
20/**
21 * The abstract base class for the resource that satisfies an intent primitive.
22 */
23@Beta
24public abstract class IntentResource {
25
26 private final IntentPrimitive primitive;
27
28 // TODO add other common fields
29 //String ingressTag;
30 //String egressTag;
31 //etc.
32
33 IntentResource(IntentPrimitive primitive) {
34 this.primitive = primitive;
35 }
36
37 public IntentPrimitive primitive() {
38 return primitive;
39 }
40
41}