/** * Copy constructor * The associations with other objects are not copied * * @param IdentifiedObject * the reference to the class to copy * @return the class constructed */ private IdentifiedObject(final IdentifiedObject otherIdentifiedObject) { // TODO : check exception safe this.copyBase(otherIdentifiedObject); }
/** * 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 otherCurve * the instance to copy */ public void copyBase(final Curve otherCurve) { // 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(otherCurve); }
/** * 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 otherGeographicalRegion * the instance to copy */ public void copyBase(final GeographicalRegion otherGeographicalRegion) { // 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(otherGeographicalRegion); }
/** * 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 otherConnectivityNodeContainer * the instance to copy */ public void copyBase(final ConnectivityNodeContainer otherConnectivityNodeContainer) { // 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(otherConnectivityNodeContainer); }
/** * 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 otherTopologicalIsland * the instance to copy */ public void copyBase(final TopologicalIsland otherTopologicalIsland) { // 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 (otherTopologicalIsland.currentBitset.get(0)) { TopologicalNode angleRef_TopologicalNodeAssociation = otherTopologicalIsland.getAngleRef_TopologicalNode(); //this.idAngleRef_TopologicalNode = (angleRef_TopologicalNodeAssociation != null) ? angleRef_TopologicalNodeAssociation.getId() : ""; if (angleRef_TopologicalNodeAssociation != null) { this.idAngleRef_TopologicalNode = angleRef_TopologicalNodeAssociation.getId(); // the proper bit will be set when the setter is called } else { this.idAngleRef_TopologicalNode = ""; } } // TODO : Call the parent copy constructor instead ? super.copyBase(otherTopologicalIsland); }
/** * 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 otherHydroPump * the instance to copy */ public void copyBase(final HydroPump otherHydroPump) { // 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 (otherHydroPump.currentBitset.get(0)) { SynchronousMachine drivenBy_SynchronousMachineAssociation = otherHydroPump.getDrivenBy_SynchronousMachine(); //this.idDrivenBy_SynchronousMachine = (drivenBy_SynchronousMachineAssociation != null) ? drivenBy_SynchronousMachineAssociation.getId() : ""; if (drivenBy_SynchronousMachineAssociation != null) { this.idDrivenBy_SynchronousMachine = drivenBy_SynchronousMachineAssociation.getId(); // the proper bit will be set when the setter is called } else { this.idDrivenBy_SynchronousMachine = ""; } } // TODO : Call the parent copy constructor instead ? super.copyBase(otherHydroPump); }
/** * 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 otherSubGeographicalRegion * the instance to copy */ public void copyBase(final SubGeographicalRegion otherSubGeographicalRegion) { // 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 (otherSubGeographicalRegion.currentBitset.get(0)) { GeographicalRegion regionAssociation = otherSubGeographicalRegion.getRegion(); //this.idRegion = (regionAssociation != null) ? regionAssociation.getId() : ""; if (regionAssociation != null) { this.idRegion = regionAssociation.getId(); // the proper bit will be set when the setter is called } else { this.idRegion = ""; } } // TODO : Call the parent copy constructor instead ? super.copyBase(otherSubGeographicalRegion); }
/** * 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 otherVoltageControlZone * the instance to copy */ public void copyBase(final VoltageControlZone otherVoltageControlZone) { // 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 (otherVoltageControlZone.currentBitset.get(0)) { BusbarSection busbarSectionAssociation = otherVoltageControlZone.getBusbarSection(); //this.idBusbarSection = (busbarSectionAssociation != null) ? busbarSectionAssociation.getId() : ""; if (busbarSectionAssociation != null) { this.idBusbarSection = busbarSectionAssociation.getId(); // the proper bit will be set when the setter is called } else { this.idBusbarSection = ""; } } // TODO : Call the parent copy constructor instead ? super.copyBase(otherVoltageControlZone); }
/** * 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 otherOperationalLimitSet * the instance to copy */ public void copyBase(final OperationalLimitSet otherOperationalLimitSet) { // 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 (otherOperationalLimitSet.currentBitset.get(1)) { Terminal terminalAssociation = otherOperationalLimitSet.getTerminal(); //this.idTerminal = (terminalAssociation != null) ? terminalAssociation.getId() : ""; if (terminalAssociation != null) { this.idTerminal = terminalAssociation.getId(); // the proper bit will be set when the setter is called } else { this.idTerminal = ""; } } // TODO : Call the parent copy constructor instead ? super.copyBase(otherOperationalLimitSet); }
super.copyBase(otherFossilFuel);
/** * 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 otherControlArea * the instance to copy */ public void copyBase(final ControlArea otherControlArea) { float newnetInterchange; // assigning primitive type : if (otherControlArea.currentBitset.get(0)) { newnetInterchange = otherControlArea.getNetInterchange(); this.setNetInterchange(newnetInterchange); } float newpTolerance; // assigning primitive type : if (otherControlArea.currentBitset.get(1)) { newpTolerance = otherControlArea.getPTolerance(); this.setPTolerance(newpTolerance); } // 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(otherControlArea); }
/** * 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 otherOperationalLimitType * the instance to copy */ public void copyBase(final OperationalLimitType otherOperationalLimitType) { // assigning enum type : OperationalLimitDirectionKind newdirection; if (otherOperationalLimitType.currentBitset.get(1)) { newdirection = otherOperationalLimitType.getDirection(); this.setDirection(newdirection); } float newacceptableDuration; // assigning primitive type : if (otherOperationalLimitType.currentBitset.get(2)) { newacceptableDuration = otherOperationalLimitType.getAcceptableDuration(); this.setAcceptableDuration(newacceptableDuration); } // 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(otherOperationalLimitType); }
/** * 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 otherBaseVoltage * the instance to copy */ public void copyBase(final BaseVoltage otherBaseVoltage) { boolean newisDC; // assigning primitive type : if (otherBaseVoltage.currentBitset.get(0)) { newisDC = otherBaseVoltage.isDC(); this.setIsDC(newisDC); } float newnominalVoltage; // assigning primitive type : if (otherBaseVoltage.currentBitset.get(3)) { newnominalVoltage = otherBaseVoltage.getNominalVoltage(); this.setNominalVoltage(newnominalVoltage); } // 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(otherBaseVoltage); }
super.copyBase(otherEquipment);
super.copyBase(otherOperationalLimit);
super.copyBase(otherRegulatingControl);
super.copyBase(otherTerminal);
super.copyBase(otherTapChanger);
super.copyBase(otherLoadResponseCharacteristic);
super.copyBase(otherMutualCoupling);