Sangho Shin | 8a75974 | 2014-09-25 14:31:18 -0700 | [diff] [blame] | 1 | package net.onrc.onos.core.matchaction.action; |
| 2 | |
| 3 | import java.util.ArrayList; |
| 4 | import java.util.List; |
| 5 | |
| 6 | import net.onrc.onos.core.util.Dpid; |
| 7 | |
| 8 | public class GroupAction implements Action { |
| 9 | List<Dpid> fwdSws; |
| 10 | |
| 11 | public GroupAction() { |
| 12 | fwdSws = new ArrayList<Dpid>(); |
| 13 | } |
| 14 | |
Sangho Shin | 43cee11 | 2014-09-25 16:43:34 -0700 | [diff] [blame^] | 15 | public void addSwitch(Dpid d) { |
Sangho Shin | 8a75974 | 2014-09-25 14:31:18 -0700 | [diff] [blame] | 16 | fwdSws.add(d); |
| 17 | } |
| 18 | |
| 19 | public List<Dpid> getDpids() { |
| 20 | return fwdSws; |
| 21 | } |
| 22 | } |