blob: 64b7e2e6c658e54872a3c6be8c7f0b878c678286 [file] [log] [blame]
package net.onrc.onos.api.flowmanager;
import java.util.List;
import net.onrc.onos.core.matchaction.MatchActionOperations;
import net.onrc.onos.core.matchaction.action.Action;
import net.onrc.onos.core.util.PortNumber;
/**
* Flow 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 Flow 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 Action 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<Action> 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 MatchActionOperations compile() {
// TODO Auto-generated method stub
return super.compile();
}
}