xmlsw.writeAttribute(CIMModel.rdfURI, "resource", "http://iec.ch/TC57/2009/CIM-schema-cim14#RegulatingControlModeKind." + getMode());
newmode = otherRegulatingControl.getMode(); this.setMode(newmode);
cim1.model.RegulatingControl rc = sm.getRegulatingControl(); if (rc != null) { if (rc.getMode() == cim1.model.RegulatingControlModeKind.voltage) { voltageRegulatorOn = true; targetV = rc.getTargetValue(); synchronousMachinesRegulatingVoltageWithZeroTargetVoltage.add(namingStrategy.getId(sm)); } else if (rc.getMode() == cim1.model.RegulatingControlModeKind.reactivePower) { targetQ = rc.getTargetValue(); } else { LOGGER.warn("Incorrect regulating control mode {} for synchronous machine {}", rc.getMode(), sm.getId());