@Override public MeterUpdated compose(TransactionId tXid) { MeterUpdatedBuilder meterMod = new MeterUpdatedBuilder(input.getUpdatedMeter()); meterMod.setTransactionId(tXid); meterMod.setMeterRef(input.getMeterRef()); return meterMod.build(); } };
@Override public MeterRemoved compose(TransactionId tXid) { MeterRemovedBuilder meterRemoved = new MeterRemovedBuilder((Meter) input); meterRemoved.setTransactionId(tXid); meterRemoved.setMeterRef(input.getMeterRef()); return meterRemoved.build(); } };
@Override public MeterAdded compose(TransactionId tXid) { MeterAddedBuilder meterMod = new MeterAddedBuilder((Meter) input); meterMod.setTransactionId(tXid); meterMod.setMeterRef(input.getMeterRef()); return meterMod.build(); } };
@Override public RpcResult<RemoveMeterOutput> apply(final RpcResult<UpdateMeterOutput> input) { UpdateMeterOutput updateMeterOutput = input.getResult(); RemoveMeterOutputBuilder removeMeterOutput = new RemoveMeterOutputBuilder(); removeMeterOutput.setTransactionId(updateMeterOutput.getTransactionId()); RemoveMeterOutput result = removeMeterOutput.build(); RpcResult<RemoveMeterOutput> rpcResult = assembleRpcResult(input, result); LOG.debug("Returning the Remove Meter RPC result to MD-SAL"); return rpcResult; } };
@Override public RpcResult<AddMeterOutput> apply(final RpcResult<UpdateMeterOutput> input) { UpdateMeterOutput updateMeterOutput = input.getResult(); AddMeterOutputBuilder addMeterOutput = new AddMeterOutputBuilder(); addMeterOutput.setTransactionId(updateMeterOutput.getTransactionId()); AddMeterOutput result = addMeterOutput.build(); RpcResult<AddMeterOutput> rpcResult = assembleRpcResult(input, result); LOG.debug("Returning the Add Meter RPC result to MD-SAL"); return rpcResult; } };
public UpdateMeterInputBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.meter.service.rev130918.MeterUpdate arg) { this._originalMeter = arg.getOriginalMeter(); this._updatedMeter = arg.getUpdatedMeter(); this._node = arg.getNode(); } public UpdateMeterInputBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeContextRef arg) {
public MeterUpdated build() { return new MeterUpdatedImpl(this); }
public org.opendaylight.yangtools.yang.binding.YangModuleInfo getModuleInfo() { return $YangModuleInfoImpl.getInstance(); } }
public MeterRemoved build() { return new MeterRemovedImpl(this); }
public UpdateMeterOutput build() { return new UpdateMeterOutputImpl(this); }
public MeterAdded build() { return new MeterAddedImpl(this); }
public AddMeterInput build() { return new AddMeterInputImpl(this); }
public UpdateMeterInput build() { return new UpdateMeterInputImpl(this); }
public RemoveMeterInput build() { return new RemoveMeterInputImpl(this); }
public RemoveMeterOutput build() { return new RemoveMeterOutputImpl(this); }
public AddMeterOutput build() { return new AddMeterOutputImpl(this); }
public MeterRemovedBuilder addAugmentation(java.lang.Class<? extends Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.meter.service.rev130918.MeterRemoved>> augmentationType, Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.meter.service.rev130918.MeterRemoved> augmentation) { if (augmentation == null) { return removeAugmentation(augmentationType); } if (!(this.augmentation instanceof HashMap)) { this.augmentation = new HashMap<>(); } this.augmentation.put(augmentationType, augmentation); return this; }
public MeterUpdatedBuilder addAugmentation(java.lang.Class<? extends Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.meter.service.rev130918.MeterUpdated>> augmentationType, Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.meter.service.rev130918.MeterUpdated> augmentation) { if (augmentation == null) { return removeAugmentation(augmentationType); } if (!(this.augmentation instanceof HashMap)) { this.augmentation = new HashMap<>(); } this.augmentation.put(augmentationType, augmentation); return this; }
public RemoveMeterOutputBuilder addAugmentation(java.lang.Class<? extends Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.meter.service.rev130918.RemoveMeterOutput>> augmentationType, Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.meter.service.rev130918.RemoveMeterOutput> augmentation) { if (augmentation == null) { return removeAugmentation(augmentationType); } if (!(this.augmentation instanceof HashMap)) { this.augmentation = new HashMap<>(); } this.augmentation.put(augmentationType, augmentation); return this; }
public MeterAddedBuilder addAugmentation(java.lang.Class<? extends Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.meter.service.rev130918.MeterAdded>> augmentationType, Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.meter.service.rev130918.MeterAdded> augmentation) { if (augmentation == null) { return removeAugmentation(augmentationType); } if (!(this.augmentation instanceof HashMap)) { this.augmentation = new HashMap<>(); } this.augmentation.put(augmentationType, augmentation); return this; }