Toshio Koide | a03915e | 2014-07-01 18:39:52 -0700 | [diff] [blame] | 1 | package 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 | */ |
| 9 | public class ModifyLambdaAction implements IAction { |
| 10 | protected int lambda; |
| 11 | |
| 12 | /** |
| 13 | * Constructor. |
| 14 | * |
Yuta HIGUCHI | ccab05d | 2014-07-26 22:42:28 -0700 | [diff] [blame^] | 15 | * @param lambda lambda after modification |
Toshio Koide | a03915e | 2014-07-01 18:39:52 -0700 | [diff] [blame] | 16 | */ |
| 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 | } |