2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
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
8 package org.opendaylight.openflowplugin.api.openflow.md.core;
10 import org.opendaylight.openflowplugin.api.openflow.md.core.session.SessionContext;
13 * translates between messages.
14 * @param <I> source message type (IN)
15 * @param <O> result message type (OUT)
17 public interface IMDMessageTranslator<I, O> {
20 * This method is called in order to translate message to MD-SAL or from MD-SAL.
21 * @param cookie auxiliary connection identifier
22 * @param sc The SessionContext which sent the OF message
23 * @param msg The OF message
24 * @return translated message
26 O translate(SwitchConnectionDistinguisher cookie, SessionContext sc, I msg);