/** * Utility to set the "generatingUnitValue" * * @param generatingUnitValue * instance to set * @param setInverse * boolean to specify whether to set the inverse association * or not * @throws LinkageException */ public void setGeneratingUnit( GeneratingUnit generatingUnitValue, boolean setInverse) throws LinkageException { this.generatingUnit = generatingUnitValue; this.currentBitset.set(0); if (setInverse) { if (generatingUnitValue != null) { generatingUnitValue.addControlAreaGeneratingUnit(this, false); } } }