/** * 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); }
this.setNetInterchange(typedValue); return; } else {