本文整理匯總了Java中org.projectfloodlight.openflow.protocol.oxm.OFOxmExpOchSigId類的典型用法代碼示例。如果您正苦於以下問題:Java OFOxmExpOchSigId類的具體用法?Java OFOxmExpOchSigId怎麽用?Java OFOxmExpOchSigId使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
OFOxmExpOchSigId類屬於org.projectfloodlight.openflow.protocol.oxm包,在下文中一共展示了OFOxmExpOchSigId類的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: rewriteActions
import org.projectfloodlight.openflow.protocol.oxm.OFOxmExpOchSigId; //導入依賴的package包/類
/**
* Rewrite actions to use LINC OF optical extensions.
*
* @param actions original actions
* @return rewritten actions
*/
private List<OFAction> rewriteActions(List<OFAction> actions) {
List<OFAction> newActions = new LinkedList<>();
for (OFAction action : actions) {
if (!(action instanceof OFActionSetField)) {
newActions.add(action);
continue;
}
OFActionSetField sf = (OFActionSetField) action;
if (!(sf.getField() instanceof OFOxmExpOchSigId)) {
newActions.add(action);
continue;
}
OFOxmExpOchSigId oxm = (OFOxmExpOchSigId) sf.getField();
CircuitSignalID signalId = oxm.getValue();
newActions.add(
factory().actions().circuit(factory().oxms().ochSigid(signalId)));
}
return newActions;
}