blob: ab62f5f054a2068580e3116bac443aea758f325a [file] [log] [blame]
Toshio Koidea03915e2014-07-01 18:39:52 -07001package net.onrc.onos.core.matchaction.action;
2
3/**
4 * An action object to modify lambda.
5 * <p>
6 * This class does not have a switch ID. The switch ID is handled by
7 * MatchAction, IFlow or Intent class.
8 */
Toshio Koided8b077a2014-08-13 10:47:21 -07009public class ModifyLambdaAction implements Action {
Toshio Koidea03915e2014-07-01 18:39:52 -070010 protected int lambda;
11
12 /**
13 * Constructor.
14 *
Yuta HIGUCHIccab05d2014-07-26 22:42:28 -070015 * @param lambda lambda after modification
Toshio Koidea03915e2014-07-01 18:39:52 -070016 */
17 public ModifyLambdaAction(int lambda) {
18 this.lambda = lambda;
19 }
20
21 /**
22 * Gets the lambda.
23 *
24 * @return The lambda.
25 */
26 public int getLambda() {
27 return lambda;
28 }
29
30}