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