/** * 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 otherRatioTapChanger * the instance to copy */ public void copyBase(final RatioTapChanger otherRatioTapChanger) { // 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 (otherRatioTapChanger.currentBitset.get(0)) { TransformerWinding transformerWindingAssociation = otherRatioTapChanger.getTransformerWinding(); //this.idTransformerWinding = (transformerWindingAssociation != null) ? transformerWindingAssociation.getId() : ""; if (transformerWindingAssociation != null) { this.idTransformerWinding = transformerWindingAssociation.getId(); // the proper bit will be set when the setter is called } else { this.idTransformerWinding = ""; } } // TODO : Call the parent copy constructor instead ? super.copyBase(otherRatioTapChanger); }