blob: 07f53e1382cacd68f743a2c39964023a6878f7ed [file] [log] [blame]
package net.onrc.onos.intent;
import net.onrc.onos.ofcontroller.networkgraph.Path;
/**
* @author Toshio Koide (t-koide@onlab.us)
*/
public class PathIntent extends Intent {
protected Path path;
protected Double bandwidth;
protected Intent parentIntent;
protected int id;
/**
*
* @param graph
* @param path
* @param bandwidth bandwidth which should be allocated for the path.
* If null, it means no intent for bandwidth allocation (best effort).
* @param parentIntent parent intent. If null, it means this is root intent.
* @param id
*/
public PathIntent(String id, Path path, Double bandwidth, Intent parentIntent) {
super(id);
this.path = path;
this.bandwidth = bandwidth;
this.parentIntent = parentIntent;
}
public Double getBandwidth() {
return bandwidth;
}
public Path getPath() {
return path;
}
public Intent getParentIntent() {
return parentIntent;
}
}