Merge "Table Features Requests Fix and TestCases"
[openflowplugin.git] / openflowplugin / src / main / java / org / opendaylight / openflowplugin / openflow / md / core / IMDMessageTranslator.java
1 package org.opendaylight.openflowplugin.openflow.md.core;
2
3 import org.opendaylight.openflowplugin.openflow.md.core.session.SessionContext;
4
5 /**
6  * translates between messages
7  * @param <IN> source message type
8  * @param <OUT> result message type
9  */
10 public interface IMDMessageTranslator<IN, OUT> {
11
12     /**
13      * This method is called in order to translate message to MD-SAL or from MD-SAL. 
14      * 
15      * @param cookie 
16      *            auxiliary connection identifier 
17      * @param sc
18      *            The SessionContext which sent the OF message
19      * @param msg
20      *            The OF message
21      *            
22      * @return translated message
23      */
24     public OUT translate(SwitchConnectionDistinguisher cookie, SessionContext sc, IN msg);
25
26 }