blob: f2d313d05f678b680df16aa7138eb5808fd08fae [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
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 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}