blob: 00a47856154c3c91945787749fa8d471f17e73bf [file] [log] [blame]
package net.onrc.onos.api.flowmanager;
import java.util.List;
import net.onrc.onos.core.matchaction.MatchActionPlan;
import net.onrc.onos.core.matchaction.action.IAction;
import net.onrc.onos.core.util.PortNumber;
/**
* IFlow object representing an optical path.
* <p>
* TODO: Think this: How do we deal the optical path flow going through the
* regenerators? Can we express it with multiple OpticalPathFlow objects?
*/
public class OpticalPathFlow extends PathFlow {
protected int lambda;
/**
* Constructor.
*
* @param id ID for this new IFlow object.
* @param inPort Ingress port number at the ingress edge node.
* @param path Path between ingress and egress edge node.
* @param actions The list of IAction objects at the egress edge node.
* @param lambda The lambda to be used throughout the path.
*/
public OpticalPathFlow(String id,
PortNumber inPort, Path path, List<IAction> actions, int lambda) {
super(id, null, inPort, path, actions);
this.lambda = lambda;
// TODO Auto-generated constructor stub
}
/**
* Gets lambda which is used throughout the path.
*
* @return lambda which is used throughout the path.
*/
public int getLambda() {
return lambda;
}
@Override
public MatchActionPlan compile() {
// TODO Auto-generated method stub
return super.compile();
}
}