blob: 65c080bc834bf57ca130d3ed4fb2cbc780679c29 [file] [log] [blame]
Toshio Koidea03915e2014-07-01 18:39:52 -07001package 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 Koide7894ca02014-08-15 14:30:13 -07007 * MatchAction, Flow or Intent class.
Toshio Koidea03915e2014-07-01 18:39:52 -07008 */
Toshio Koided8b077a2014-08-13 10:47:21 -07009public class OpticalMatch implements Match {
Toshio Koidea03915e2014-07-01 18:39:52 -070010
11 // Match fields
Ray Milkeya313cde2014-09-05 09:02:52 -070012 private Integer srcLambda;
Toshio Koidea03915e2014-07-01 18:39:52 -070013
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}