Toshio Koide | a03915e | 2014-07-01 18:39:52 -0700 | [diff] [blame] | 1 | package net.onrc.onos.api.intent; |
| 2 | |
Toshio Koide | a03915e | 2014-07-01 18:39:52 -0700 | [diff] [blame] | 3 | import net.onrc.onos.core.util.SwitchPort; |
| 4 | |
| 5 | /** |
| 6 | * An optical layer Intent for a connectivity from a transponder port to another |
| 7 | * transponder port. |
| 8 | * <p> |
| 9 | * This class doesn't accepts lambda specifier. This class computes path between |
| 10 | * ports and assign lambda automatically. The lambda can be specified using |
| 11 | * OpticalPathFlow class. |
| 12 | */ |
| 13 | public class OpticalConnectivityIntent extends Intent { |
| 14 | protected SwitchPort srcSwitchPort; |
| 15 | protected SwitchPort dstSwitchPort; |
| 16 | |
| 17 | /** |
| 18 | * Constructor. |
| 19 | * |
| 20 | * @param id ID for this new Intent object. |
| 21 | * @param srcSwitchPort The source transponder port. |
| 22 | * @param dstSwitchPort The destination transponder port. |
| 23 | */ |
Sho SHIMIZU | ec4f5a7 | 2014-07-21 18:21:23 -0700 | [diff] [blame] | 24 | public OpticalConnectivityIntent(IntentId id, |
Toshio Koide | a03915e | 2014-07-01 18:39:52 -0700 | [diff] [blame] | 25 | SwitchPort srcSwitchPort, SwitchPort dstSwitchPort) { |
| 26 | super(id); |
| 27 | this.srcSwitchPort = srcSwitchPort; |
| 28 | this.dstSwitchPort = dstSwitchPort; |
| 29 | } |
| 30 | |
| 31 | /** |
| 32 | * Gets source transponder port. |
| 33 | * |
| 34 | * @return The source transponder port. |
| 35 | */ |
| 36 | public SwitchPort getSrcSwitchPort() { |
| 37 | return srcSwitchPort; |
| 38 | } |
| 39 | |
| 40 | /** |
| 41 | * Gets destination transponder port. |
| 42 | * |
| 43 | * @return The source transponder port. |
| 44 | */ |
| 45 | public SwitchPort getDstSwitchPort() { |
| 46 | return dstSwitchPort; |
| 47 | } |
Toshio Koide | a03915e | 2014-07-01 18:39:52 -0700 | [diff] [blame] | 48 | } |