| package org.onlab.onos.net.intent; |
| |
| import org.onlab.onos.core.ApplicationId; |
| import org.onlab.onos.net.ConnectPoint; |
| |
| /** |
| * An optical layer Intent for a connectivity from one Transponder port to another |
| * Transponder port. No trafficSelector as well as trafficTreament are needed. |
| * |
| */ |
| public class OpticalConnectivityIntent extends Intent { |
| protected ConnectPoint src; |
| protected ConnectPoint dst; |
| |
| /** |
| * Constructor. |
| * |
| * @param id ID for this new Intent object. |
| * @param src The source transponder port. |
| * @param dst The destination transponder port. |
| */ |
| public OpticalConnectivityIntent(ApplicationId appId, ConnectPoint src, ConnectPoint dst) { |
| super(id(OpticalConnectivityIntent.class, src, dst), |
| appId, null); |
| this.src = src; |
| this.dst = dst; |
| } |
| |
| /** |
| * Constructor for serializer. |
| */ |
| protected OpticalConnectivityIntent() { |
| super(); |
| this.src = null; |
| this.dst = null; |
| } |
| |
| /** |
| * Gets source transponder port. |
| * |
| * @return The source transponder port. |
| */ |
| public ConnectPoint getSrcConnectPoint() { |
| return src; |
| } |
| |
| /** |
| * Gets destination transponder port. |
| * |
| * @return The source transponder port. |
| */ |
| public ConnectPoint getDst() { |
| return dst; |
| } |
| } |