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 SingleDstTreeFlowIntent}. |
| 7 | */ |
| 8 | public 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 | } |