blob: d22700b036eadcc9b284f65d075a75475c95934a [file] [log] [blame]
weibitf32383b2014-10-22 10:17:31 -07001package org.onlab.onos.net.intent;
2
Thomas Vachuskae0f804a2014-10-27 23:40:48 -07003import org.onlab.onos.core.ApplicationId;
weibitf32383b2014-10-22 10:17:31 -07004import org.onlab.onos.net.ConnectPoint;
5
6/**
weibit7e583462014-10-23 10:14:05 -07007 * An optical layer Intent for a connectivity from one Transponder port to another
weibitf32383b2014-10-22 10:17:31 -07008 * Transponder port. No trafficSelector as well as trafficTreament are needed.
9 *
10 */
weibit7e583462014-10-23 10:14:05 -070011public class OpticalConnectivityIntent extends Intent {
weibitf32383b2014-10-22 10:17:31 -070012 protected ConnectPoint src;
13 protected ConnectPoint dst;
14
15 /**
16 * Constructor.
17 *
18 * @param id ID for this new Intent object.
19 * @param src The source transponder port.
20 * @param dst The destination transponder port.
21 */
weibit7e583462014-10-23 10:14:05 -070022 public OpticalConnectivityIntent(ApplicationId appId, ConnectPoint src, ConnectPoint dst) {
23 super(id(OpticalConnectivityIntent.class, src, dst),
24 appId, null);
weibitf32383b2014-10-22 10:17:31 -070025 this.src = src;
26 this.dst = dst;
27 }
28
29 /**
30 * Constructor for serializer.
31 */
32 protected OpticalConnectivityIntent() {
33 super();
34 this.src = null;
35 this.dst = null;
36 }
37
38 /**
39 * Gets source transponder port.
40 *
41 * @return The source transponder port.
42 */
43 public ConnectPoint getSrcConnectPoint() {
44 return src;
45 }
46
47 /**
48 * Gets destination transponder port.
49 *
50 * @return The source transponder port.
51 */
52 public ConnectPoint getDst() {
53 return dst;
54 }
55}