blob: 256fa44de0693815775681d9f30436e75491ed34 [file] [log] [blame]
Toshio Koidea03915e2014-07-01 18:39:52 -07001package net.onrc.onos.api.intent;
2
Toshio Koidea03915e2014-07-01 18:39:52 -07003import 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 */
13public 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 SHIMIZUec4f5a72014-07-21 18:21:23 -070024 public OpticalConnectivityIntent(IntentId id,
Toshio Koidea03915e2014-07-01 18:39:52 -070025 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 Koidea03915e2014-07-01 18:39:52 -070048}