blob: 531a6a2b968849b59edd59f3ae78fcfde3c254e4 [file] [log] [blame]
Carmelo Cascone1a7e4f92017-11-20 23:04:02 -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.runtime;
18
19import com.google.common.annotations.Beta;
Carmelo Cascone4c289b72019-01-22 15:30:45 -080020import org.onosproject.net.DeviceId;
Carmelo Cascone1a7e4f92017-11-20 23:04:02 -080021
22/**
23 * Abstraction of an entity of a protocol-independent that can be read or write
24 * at runtime.
25 */
26@Beta
27public interface PiEntity {
28
29 /**
30 * Returns the type of this entity.
31 *
32 * @return entity type
33 */
34 PiEntityType piEntityType();
Carmelo Cascone4c289b72019-01-22 15:30:45 -080035
36 /**
37 * Returns a handle for this PI entity and the given device ID.
38 *
39 * @param deviceId device ID
40 * @return handle
41 */
42 PiHandle handle(DeviceId deviceId);
Carmelo Cascone1a7e4f92017-11-20 23:04:02 -080043}