/** * Utility to add a value within the "controlAreaGeneratingUnit" ArrayList of * "ControlAreaGeneratingUnit" * * @param controlAreaGeneratingUnitValue * value to add within the ArrayList * @param setInverse * boolean to specify whether to set the inverse association or not * @throws LinkageException */ public void addControlAreaGeneratingUnit( ControlAreaGeneratingUnit controlAreaGeneratingUnitValue, boolean setInverse) throws LinkageException { if (controlAreaGeneratingUnit == null) { controlAreaGeneratingUnit = new ArrayList<ControlAreaGeneratingUnit>(); } this.controlAreaGeneratingUnit.add(controlAreaGeneratingUnitValue); this.currentBitset.set(4); if (setInverse) { if (controlAreaGeneratingUnitValue != null) { controlAreaGeneratingUnitValue.setControlArea(this, false); } } }
this.setControlArea(attributeToSet, setInverse); } catch(LinkageException e) { LOGGER.error(e.toString(), e); this.setControlArea(attributeToSetFromBoundary, setInverse); } catch(LinkageException e) { LOGGER.error(e.toString(), e);