本文整理汇总了Java中org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.instruction.MeterCaseBuilder类的典型用法代码示例。如果您正苦于以下问题:Java MeterCaseBuilder类的具体用法?Java MeterCaseBuilder怎么用?Java MeterCaseBuilder使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
MeterCaseBuilder类属于org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.instruction包,在下文中一共展示了MeterCaseBuilder类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createInstruction
import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.instruction.MeterCaseBuilder; //导入依赖的package包/类
private Instructions createInstruction(final MeterId meterId) {
MeterBuilder meterBuilder = new MeterBuilder();
meterBuilder.setMeterId(meterId);
Instruction instruction = new InstructionBuilder()
.setOrder(0)
.setInstruction(new MeterCaseBuilder()
.setMeter(meterBuilder.build()).build()).build();
List<Instruction> instructions = new ArrayList<>();
instructions.add(instruction);
InstructionsBuilder instructionsBuilder = new InstructionsBuilder();
instructionsBuilder.setInstruction(instructions);
return instructionsBuilder.build();
}