alshabib | 54ebd9c | 2014-08-27 18:38:41 -0700 | [diff] [blame] | 1 | package org.onlab.onos.of.controller; |
| 2 | |
| 3 | import org.projectfloodlight.openflow.protocol.OFMessage; |
| 4 | |
| 5 | /** |
| 6 | * Abstract model of an OpenFlow Switch. |
| 7 | * |
| 8 | */ |
| 9 | public interface OpenFlowSwitch { |
| 10 | |
| 11 | /** |
| 12 | * Writes the message to this switch. |
| 13 | * |
| 14 | * @param msg the message to write |
| 15 | */ |
alshabib | d777b20 | 2014-08-28 17:52:55 -0700 | [diff] [blame^] | 16 | public void sendMsg(OFMessage msg); |
alshabib | 54ebd9c | 2014-08-27 18:38:41 -0700 | [diff] [blame] | 17 | |
| 18 | /** |
| 19 | * Handle a message from the switch. |
| 20 | * @param fromSwitch the message to handle |
| 21 | */ |
| 22 | public void handleMessage(OFMessage fromSwitch); |
| 23 | } |