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