Ayaka Koshibe

FlowEntry contains a FlowId

Change-Id: I8cf2cdc30865db0d5af7de5eb7e312e9ec2c0417
......@@ -5,6 +5,9 @@ package org.onlab.onos.net.flow;
*/
public interface FlowEntry extends FlowRule {
FlowId id();
/**
* Returns the number of milliseconds this flow rule has been applied.
*
......
package org.onlab.onos.net.flow;
/**
* Representation of a Flow ID.
*/
public final class FlowId {
private final int flowid;
private FlowId(int id) {
this.flowid = id;
}
public FlowId valueOf(int id) {
return new FlowId(id);
}
public int value() {
return flowid;
}
}