blob: c580149a11d57c0420a19ec5c6b0946fdcdcba1c [file] [log] [blame]
Simon Huntf844f632015-05-20 19:06:35 -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
21import com.fasterxml.jackson.databind.node.ObjectNode;
22
23/**
24 * Designates a specific instance of an XOS function.
25 */
26public interface XosFunction extends JsonBlob {
27
28 /**
29 * Returns the descriptor for this function.
30 *
31 * @return function identifier
32 */
33 XosFunctionDescriptor descriptor();
34
35 /**
36 * Returns the current state of this function, encapsulated
37 * as a JSON node.
38 *
39 * @return parameters for the function
40 */
41 ObjectNode params();
42}
43