tom | 9c94c5b | 2014-09-17 13:14:42 -0700 | [diff] [blame] | 1 | package org.onlab.onos.openflow.controller.driver; |
tom | 7ef8ff9 | 2014-09-17 13:08:06 -0700 | [diff] [blame] | 2 | |
tom | 9c94c5b | 2014-09-17 13:14:42 -0700 | [diff] [blame] | 3 | import org.onlab.onos.openflow.controller.Dpid; |
tom | 7ef8ff9 | 2014-09-17 13:08:06 -0700 | [diff] [blame] | 4 | import org.projectfloodlight.openflow.protocol.OFDescStatsReply; |
| 5 | import org.projectfloodlight.openflow.protocol.OFVersion; |
| 6 | |
| 7 | /** |
| 8 | * Switch factory which returns concrete switch objects for the |
| 9 | * physical openflow switch in use. |
| 10 | * |
| 11 | */ |
| 12 | public interface OpenFlowSwitchDriverFactory { |
| 13 | |
| 14 | |
| 15 | /** |
| 16 | * Constructs the real openflow switch representation. |
| 17 | * @param dpid the dpid for this switch. |
| 18 | * @param desc its description. |
| 19 | * @param ofv the OF version in use |
| 20 | * @return the openflow switch representation. |
| 21 | */ |
| 22 | public OpenFlowSwitchDriver getOFSwitchImpl(Dpid dpid, |
| 23 | OFDescStatsReply desc, OFVersion ofv); |
| 24 | } |