/** * Copy constructor * The associations with other objects are not copied * * @param ConductingEquipment * the reference to the class to copy * @return the class constructed */ private ConductingEquipment(final ConductingEquipment otherConductingEquipment) { // TODO : check exception safe this.copyBase(otherConductingEquipment); }
/** * Utility to copy the "base" of an other instance of the same class * This utility does not copy the associations with other instances from * the instance to copy * * @param otherSwitch * the instance to copy */ public void copyBase(final Switch otherSwitch) { // Memory allocation has done successfully ! // Dropping "old" objects... // This part may change : we do nothing to allow the user to access // object by their id from the global model. // TODO : Call the parent copy constructor instead ? super.copyBase(otherSwitch); }
/** * Utility to copy the "base" of an other instance of the same class * This utility does not copy the associations with other instances from * the instance to copy * * @param otherEquivalentEquipment * the instance to copy */ public void copyBase(final EquivalentEquipment otherEquivalentEquipment) { // Memory allocation has done successfully ! // Dropping "old" objects... // This part may change : we do nothing to allow the user to access // object by their id from the global model. // TODO : Call the parent copy constructor instead ? super.copyBase(otherEquivalentEquipment); }
/** * Utility to copy the "base" of an other instance of the same class * This utility does not copy the associations with other instances from * the instance to copy * * @param otherEnergyConsumer * the instance to copy */ public void copyBase(final EnergyConsumer otherEnergyConsumer) { // Memory allocation has done successfully ! // Dropping "old" objects... // This part may change : we do nothing to allow the user to access // object by their id from the global model. if (otherEnergyConsumer.currentBitset.get(0)) { LoadResponseCharacteristic loadResponseAssociation = otherEnergyConsumer.getLoadResponse(); //this.idLoadResponse = (loadResponseAssociation != null) ? loadResponseAssociation.getId() : ""; if (loadResponseAssociation != null) { this.idLoadResponse = loadResponseAssociation.getId(); // the proper bit will be set when the setter is called } else { this.idLoadResponse = ""; } } // TODO : Call the parent copy constructor instead ? super.copyBase(otherEnergyConsumer); }
/** * Utility to copy the "base" of an other instance of the same class * This utility does not copy the associations with other instances from * the instance to copy * * @param otherBusbarSection * the instance to copy */ public void copyBase(final BusbarSection otherBusbarSection) { // Memory allocation has done successfully ! // Dropping "old" objects... // This part may change : we do nothing to allow the user to access // object by their id from the global model. if (otherBusbarSection.currentBitset.get(0)) { VoltageControlZone voltageControlZoneAssociation = otherBusbarSection.getVoltageControlZone(); //this.idVoltageControlZone = (voltageControlZoneAssociation != null) ? voltageControlZoneAssociation.getId() : ""; if (voltageControlZoneAssociation != null) { this.idVoltageControlZone = voltageControlZoneAssociation.getId(); // the proper bit will be set when the setter is called } else { this.idVoltageControlZone = ""; } } // TODO : Call the parent copy constructor instead ? super.copyBase(otherBusbarSection); }
/** * Utility to copy the "base" of an other instance of the same class * This utility does not copy the associations with other instances from * the instance to copy * * @param otherRegulatingCondEq * the instance to copy */ public void copyBase(final RegulatingCondEq otherRegulatingCondEq) { // Memory allocation has done successfully ! // Dropping "old" objects... // This part may change : we do nothing to allow the user to access // object by their id from the global model. if (otherRegulatingCondEq.currentBitset.get(0)) { RegulatingControl regulatingControlAssociation = otherRegulatingCondEq.getRegulatingControl(); //this.idRegulatingControl = (regulatingControlAssociation != null) ? regulatingControlAssociation.getId() : ""; if (regulatingControlAssociation != null) { this.idRegulatingControl = regulatingControlAssociation.getId(); // the proper bit will be set when the setter is called } else { this.idRegulatingControl = ""; } } // TODO : Call the parent copy constructor instead ? super.copyBase(otherRegulatingCondEq); }
super.copyBase(otherConductor);
super.copyBase(otherTransformerWinding);