blob: 70665032375da1f1e85e4ccd6553210198f5b0c7 [file] [log] [blame]
Sho SHIMIZU913969b2014-08-18 15:04:21 -07001package net.onrc.onos.core.newintent;
2
3import net.onrc.onos.api.flowmanager.FlowManagerService;
4
5/**
6 * An intent installer for {@link PathFlowIntent}.
7 */
8public 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}