blob: 89f6208775e110857fd7819601733af7d7d87716 [file] [log] [blame]
Toshio Koidea03915e2014-07-01 18:39:52 -07001package net.onrc.onos.api.intent;
2
3import java.util.List;
4
5import net.onrc.onos.api.batchoperation.BatchOperation;
6import net.onrc.onos.api.flowmanager.IFlow;
7import 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 */
17public 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 */
28 public OpticalConnectivityIntent(String id,
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}