blob: 00bae0e26c5ef24afb5514dc295cec880499cd25 [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
7 * MatchAction, IFlow or Intent class.
8 */
9public class OpticalMatch implements IMatch {
10
11 // Match fields
12 protected Integer srcLambda;
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}