blob: 0622be61bceb3421c9dd9c7440f11db44713807b [file] [log] [blame]
package net.onrc.onos.api.flowmanager;
import net.onrc.onos.api.batchoperation.BatchOperationTarget;
import net.onrc.onos.core.matchaction.MatchActionOperations;
import net.onrc.onos.core.matchaction.match.Match;
/**
* An interface class to define flow object which is managed by
* FlowManagerModule.
* <p>
* The flow objects (eg. path, tree, disjoint-paths, etc.) must implement this
* interface.
*/
public interface Flow extends BatchOperationTarget {
/**
* Gets ID for this flow object.
*
* @return ID for this object.
*/
public FlowId getId();
/**
* Gets traffic filter for this flow object.
*
* @return a traffic filter for this flow object.
*/
public Match getMatch();
/**
* Compiles this object to MatchAction plan.
* <p>
* This method is called by FlowManagerModule to create MatchAction operations.
*
* @return a MatchAction plan of this flow object.
*/
public MatchActionOperations compile();
}