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