4e7fec749f27d21ec525a180bb62f2600532fb3d
[openflowplugin.git] / extension / openflowplugin-extension-api / src / main / java / org / opendaylight / openflowplugin / extension / api / ConvertorActionToOFJava.java
1 /**
2  * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
3  * 
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.openflowplugin.extension.api;
9
10 import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.Action;
11 import org.opendaylight.yangtools.yang.binding.DataContainer;
12
13 /**
14  * convert message from MD-SAL model into OFJava-API model
15  * @param <FROM> input message model - MD-SAL model 
16  * @param <TO> output message model - OFJava-API
17  */
18 public interface ConvertorActionToOFJava<FROM extends Action, TO extends DataContainer> {
19
20     /**
21      * @param actionCase where is vendor's augmentation
22      * @return message converted to OFJava-API
23      */
24     TO convert(FROM actionCase);
25 }