message.append(this.getId()); message.append("\" is not consistent in this context:\n");
/** * 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 otherThermalGeneratingUnit * the instance to copy */ public void copyBase(final ThermalGeneratingUnit otherThermalGeneratingUnit) { // 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 (otherThermalGeneratingUnit.currentBitset.get(0)) { FossilFuel fossilFuelsAssociation = otherThermalGeneratingUnit.getFossilFuels(); //this.idFossilFuels = (fossilFuelsAssociation != null) ? fossilFuelsAssociation.getId() : ""; if (fossilFuelsAssociation != null) { this.idFossilFuels = fossilFuelsAssociation.getId(); // the proper bit will be set when the setter is called } else { this.idFossilFuels = ""; } } // TODO : Call the parent copy constructor instead ? super.copyBase(otherThermalGeneratingUnit); }
errorMessage.append("FossilFuel "); errorMessage.append("which ID has been initialized to : "); errorMessage.append(getId()); LOGGER.error(errorMessage.toString()); LOGGER.error(e.toString(), e); errorMessage.append("FossilFuel "); errorMessage.append("which ID has been initialized to : "); errorMessage.append(getId()); LOGGER.error(errorMessage.toString()); LOGGER.error(e.toString(), e);
xmlsw.writeAttribute(CIMModel.rdfURI, "ID", getId()); errorMessage.append("FossilFuel "); errorMessage.append("which ID has been initialized to : "); errorMessage.append(getId()); LOGGER.error(errorMessage.toString()); LOGGER.error(e.toString(), e); errorMessage.append("FossilFuel "); errorMessage.append("which ID has been initialized to : "); errorMessage.append(getId()); LOGGER.error(errorMessage.toString()); LOGGER.error(e.toString(), e); try { xmlsw.writeStartElement(CIMURI.CIMURI, "FossilFuel"); xmlsw.writeAttribute(CIMModel.rdfURI, "ID", getId()); errorMessage.append("FossilFuel "); errorMessage.append("which ID has been initialized to : "); errorMessage.append(getId()); errorMessage.append(" in the subset "); errorMessage.append("Equipment"); errorMessage.append("FossilFuel "); errorMessage.append("which ID has been initialized to : "); errorMessage.append(getId()); errorMessage.append(" in the subset "); errorMessage.append("Equipment");
errorMessage.append(idThermalGeneratingUnit); errorMessage.append("\" in \"FossilFuel\" of id \""); errorMessage.append(this.getId()); errorMessage.append("\" !"); throw new LinkageException(errorMessage.toString()); errorMessage.append(idThermalGeneratingUnit); errorMessage.append("\" in \"FossilFuel\" of id \""); errorMessage.append(this.getId()); errorMessage.append("\" !"); throw new LinkageException(errorMessage.toString());
FossilFuel value = entry.getValue(); newFossilFuel = value; this.id_FossilFuel.put(newFossilFuel.getId(), newFossilFuel); this.allInstances.put(newFossilFuel.getId(), newFossilFuel); newMap.put(newFossilFuel.getId(), newFossilFuel); this.subsetsInstances.put( .put(newFossilFuel.getId(), newFossilFuel);