tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 1 | package org.onlab.onos.net.flow; |
tom | 613d814 | 2014-09-11 15:09:37 -0700 | [diff] [blame] | 2 | |
| 3 | import org.onlab.onos.net.PortNumber; |
| 4 | |
| 5 | /** |
| 6 | * Abstraction of different kinds of treatment that can be applied to an |
| 7 | * outbound packet. |
| 8 | */ |
| 9 | public interface Treatment { |
| 10 | |
| 11 | // TODO: implement these later: modifications, group |
| 12 | // TODO: elsewhere provide factory methods for some default treatments |
| 13 | |
| 14 | /** |
| 15 | * Returns the port number where the packet should be emitted. |
| 16 | * |
| 17 | * @return output port number |
| 18 | */ |
| 19 | PortNumber output(); |
| 20 | |
| 21 | } |