Toshio Koide | a03915e | 2014-07-01 18:39:52 -0700 | [diff] [blame] | 1 | package net.onrc.onos.core.matchaction.match; |
| 2 | |
| 3 | /** |
| 4 | * A match object (traffic specifier) for optical nodes, flow-paths and intents. |
| 5 | * <p> |
| 6 | * This class does not have a switch ID and a port number. They are handled by |
Toshio Koide | 7894ca0 | 2014-08-15 14:30:13 -0700 | [diff] [blame] | 7 | * MatchAction, Flow or Intent class. |
Toshio Koide | a03915e | 2014-07-01 18:39:52 -0700 | [diff] [blame] | 8 | */ |
Toshio Koide | d8b077a | 2014-08-13 10:47:21 -0700 | [diff] [blame] | 9 | public class OpticalMatch implements Match { |
Toshio Koide | a03915e | 2014-07-01 18:39:52 -0700 | [diff] [blame] | 10 | |
| 11 | // Match fields |
Ray Milkey | a313cde | 2014-09-05 09:02:52 -0700 | [diff] [blame] | 12 | private Integer srcLambda; |
Toshio Koide | a03915e | 2014-07-01 18:39:52 -0700 | [diff] [blame] | 13 | |
| 14 | /** |
| 15 | * Constructor. |
| 16 | */ |
| 17 | public OpticalMatch() { |
| 18 | this(null); |
| 19 | } |
| 20 | |
| 21 | /** |
| 22 | * Constructor. |
| 23 | * |
| 24 | * @param srcLambda The source lambda. Null means the wild-card for the |
| 25 | * lambda. |
| 26 | */ |
| 27 | public OpticalMatch(Integer srcLambda) { |
| 28 | this.srcLambda = srcLambda; |
| 29 | } |
| 30 | |
| 31 | /** |
| 32 | * Gets the source lambda. |
| 33 | * |
| 34 | * @return The source lambda, or null if it was wild-card. |
| 35 | */ |
| 36 | public Integer getSrcLambda() { |
| 37 | return srcLambda; |
| 38 | } |
| 39 | } |