blob: f3568c12b9861021f70fbfa479d9e9b3e2697d2d [file] [log] [blame]
alshabib54ebd9c2014-08-27 18:38:41 -07001package org.onlab.onos.of.controller;
2
3import org.projectfloodlight.openflow.protocol.OFMessage;
4
5/**
6 * Abstract model of an OpenFlow Switch.
7 *
8 */
9public interface OpenFlowSwitch {
10
11 /**
12 * Writes the message to this switch.
13 *
14 * @param msg the message to write
15 */
alshabibd777b202014-08-28 17:52:55 -070016 public void sendMsg(OFMessage msg);
alshabib54ebd9c2014-08-27 18:38:41 -070017
18 /**
19 * Handle a message from the switch.
20 * @param fromSwitch the message to handle
21 */
22 public void handleMessage(OFMessage fromSwitch);
23}