Merge "Bug 5591 - Changed DeviceContext to DeviceState in translate methods of Messag...
[openflowplugin.git] / openflowplugin-api / src / main / java / org / opendaylight / openflowplugin / api / openflow / device / MessageTranslator.java
1 /**
2  * Copyright (c) 2015 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.api.openflow.device;
9
10 /**
11  * @author tkubas
12  * @param <I> input message
13  * @param <O> output message
14  *
15  */
16 public interface MessageTranslator<I, O> {
17
18     /**
19      * Translates from input to output
20      * @param input
21      * @param deviceState
22      * @param connectionDistinguisher
23      * @return message of output type
24      */
25     O translate(I input, DeviceState deviceState, Object connectionDistinguisher);
26
27 }