Sho SHIMIZU | 913969b | 2014-08-18 15:04:21 -0700 | [diff] [blame] | 1 | package net.onrc.onos.core.newintent; |
| 2 | |
| 3 | import net.onrc.onos.api.flowmanager.FlowManagerService; |
| 4 | |
| 5 | /** |
| 6 | * An intent installer for {@link PathFlowIntent}. |
| 7 | */ |
| 8 | public class PathFlowIntentInstaller |
| 9 | extends AbstractIntentInstaller<PathFlowIntent> { |
| 10 | /** |
| 11 | * Constructs an intent installer for {@link PathFlowIntent} with the |
| 12 | * specified Flow Manager service, which is used in this installer. |
| 13 | * |
| 14 | * @param flowManager Flow Manager service, which is used |
| 15 | * to install/remove an intent |
| 16 | */ |
| 17 | public PathFlowIntentInstaller(FlowManagerService flowManager) { |
| 18 | super(flowManager); |
| 19 | } |
| 20 | |
| 21 | @Override |
| 22 | public void install(PathFlowIntent intent) { |
| 23 | installFlow(intent, intent.getFlow()); |
| 24 | } |
| 25 | |
| 26 | @Override |
| 27 | public void remove(PathFlowIntent intent) { |
| 28 | removeFlow(intent, intent.getFlow()); |
| 29 | } |
| 30 | } |