blob: 66b8c53d8b9977856294efeed0a7f669588c275f [file] [log] [blame]
Carmelo Cascone87892e22017-11-13 16:01:29 -08001/*
2 * Copyright 2017-present Open Networking Foundation
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
17package org.onosproject.net.pi.model;
18
19import com.google.common.annotations.Beta;
20
21import java.util.Collection;
22
23/**
24 * Model of an action profile in a protocol-independent pipeline.
25 */
26@Beta
27public interface PiActionProfileModel {
28
29 /**
30 * Returns the ID of this action profile.
31 *
32 * @return action profile ID
33 */
34 PiActionProfileId id();
35
36 /**
37 * Returns the collection of table IDs that use this action profile.
38 *
39 * @return collection of table models
40 */
41 Collection<PiTableId> tables();
42
43 /**
44 * Returns true if this action profile implements dynamic selection, false otherwise.
45 *
46 * @return true if action profile implements dynamic selection, false otherwise
47 */
48 boolean hasSelector();
49
50 /**
51 * Returns the maximum number of member entries of this action profile.
52 *
53 * @return maximum number of member entries
54 */
55 long maxSize();
56}