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