blob: 8f8c8b2544eddd74187d882306a811a50a6ff3c7 [file] [log] [blame]
package net.onrc.onos.core.intent;
import net.onrc.onos.core.util.FlowEntryAction;
import org.projectfloodlight.openflow.protocol.OFFactory;
import org.projectfloodlight.openflow.protocol.action.OFAction;
/**
* An abstract class that represents an OpenFlow action.
*/
public abstract class Action {
/**
* This function converts the Action into a legacy FlowEntryAction.
*
* @return an equivalent FlowEntryAction object
*/
public abstract FlowEntryAction getFlowEntryAction();
/**
* Builds and returns an OFAction given an OFFactory.
*
* @param factory the OFFactory to use for building
* @return the OFAction
*/
public abstract OFAction getOFAction(OFFactory factory);
}