blob: f79237b82e4d777d3daa2dd7c71f5cda5838100e [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 SingleDstTreeFlowIntent}.
7 */
8public class SingleDstTreeFlowIntentInstaller
9 extends AbstractIntentInstaller<SingleDstTreeFlowIntent> {
10
11 /**
12 * Constructs an intent installer for {@link SingleDstTreeFlowIntent} with
13 * the specified Flow Manager service, which is used in this installer.
14 *
15 * @param flowManager Flow Manager service, which is used
16 * to install/remove an intent
17 */
18 public SingleDstTreeFlowIntentInstaller(FlowManagerService flowManager) {
19 super(flowManager);
20 }
21
22 @Override
23 public void install(SingleDstTreeFlowIntent intent) {
24 installFlow(intent, intent.getTree());
25 }
26
27 @Override
28 public void remove(SingleDstTreeFlowIntent intent) {
29 removeFlow(intent, intent.getTree());
30 }
31}